- Timestamp:
- Mar 27, 2006, 11:19:31 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/cat_list.php
r1082 r1106 79 79 // | virtual categories management | 80 80 // +-----------------------------------------------------------------------+ 81 // request to delete a virtual category 82 if (isset($_GET['delete']) and is_numeric($_GET['delete']) )81 // request to delete a virtual category / not for an adviser 82 if (isset($_GET['delete']) and is_numeric($_GET['delete']) and !is_adviser()) 83 83 { 84 84 delete_categories(array($_GET['delete'])); -
trunk/include/user.inc.php
r1052 r1106 79 79 $user['expand'] = $conf['auto_expand']; 80 80 $user['show_nb_comments'] = $conf['show_nb_comments']; 81 $user['enabled_high'] = $conf['newuser_default_enabled_high']; 81 82 } 82 83 -
trunk/picture.php
r1094 r1106 100 100 */ 101 101 102 if (isset($_GET['action']) )102 if (isset($_GET['action']) and !is_adviser()) 103 103 { 104 104 switch ($_GET['action']) … … 140 140 case 'set_as_representative' : 141 141 { 142 if (is_admin() and isset($page['category']) and !is_adviser())142 if (is_admin() and isset($page['category'])) 143 143 { 144 144 $query = ' … … 160 160 case 'add_to_caddie' : 161 161 { 162 if (!is_adviser()) 163 { 164 fill_caddie(array($page['image_id'])); 165 } 162 fill_caddie(array($page['image_id'])); 166 163 redirect($url_self); 167 164 break;
Note: See TracChangeset
for help on using the changeset viewer.