isValid() ) { $editionId = !empty( $_REQUEST['edition_id'] ) ? $_REQUEST['edition_id'] : NULL; $conId = !empty( $_REQUEST['content_id'] ) ? $_REQUEST['content_id'] : NULL; $nlId = !empty( $_REQUEST['nl_id'] ) ? $_REQUEST['nl_id'] : NULL; $gContent = new BitNewsletterEdition( $editionId, $conId, $nlId ); $gContent->load(); $gBitSmarty->assign_by_ref( 'gContent', $gContent ); } // $gBitSmarty->assign('individual', 'n'); /* if ($userlib->object_has_one_permission($_REQUEST["nl_id"], 'newsletter')) { $gBitSmarty->assign('individual', 'y'); if( !$gBitUser->isAdmin() ) { $perms = $userlib->get_permissions(0, -1, 'perm_name_desc', '', 'newsletters'); foreach ($perms["data"] as $perm) { $perm_name = $perm["perm_name"]; if ($userlib->object_has_permission($user, $_REQUEST["nl_id"], 'newsletter', $perm_name)) { $$perm_name = 'y'; $gBitSmarty->assign("$perm_name", 'y'); } else { $$perm_name = 'n'; $gBitSmarty->assign("$perm_name", 'n'); } } } } */ ?>