diff options
-rw-r--r-- | admin/cat_list.php | 4 | ||||
-rw-r--r-- | include/user.inc.php | 1 | ||||
-rw-r--r-- | picture.php | 9 |
3 files changed, 6 insertions, 8 deletions
diff --git a/admin/cat_list.php b/admin/cat_list.php index 510f5e284..7917b0a6a 100644 --- a/admin/cat_list.php +++ b/admin/cat_list.php @@ -78,8 +78,8 @@ $navigation.= '</a>'; // +-----------------------------------------------------------------------+ // | virtual categories management | // +-----------------------------------------------------------------------+ -// request to delete a virtual category -if (isset($_GET['delete']) and is_numeric($_GET['delete'])) +// request to delete a virtual category / not for an adviser +if (isset($_GET['delete']) and is_numeric($_GET['delete']) and !is_adviser()) { delete_categories(array($_GET['delete'])); array_push($page['infos'], $lang['cat_virtual_deleted']); diff --git a/include/user.inc.php b/include/user.inc.php index 4b3dd13e8..83d86a6c7 100644 --- a/include/user.inc.php +++ b/include/user.inc.php @@ -78,6 +78,7 @@ if ($user['is_the_guest']) $user['recent_period'] = $conf['recent_period']; $user['expand'] = $conf['auto_expand']; $user['show_nb_comments'] = $conf['show_nb_comments']; + $user['enabled_high'] = $conf['newuser_default_enabled_high']; } // calculation of the number of picture to display per page diff --git a/picture.php b/picture.php index ac1b2efbe..98f5dc027 100644 --- a/picture.php +++ b/picture.php @@ -99,7 +99,7 @@ $url_self = duplicate_picture_URL(); * Actions finish by a redirection */ -if (isset($_GET['action'])) +if (isset($_GET['action']) and !is_adviser()) { switch ($_GET['action']) { @@ -139,7 +139,7 @@ DELETE FROM '.FAVORITES_TABLE.' } case 'set_as_representative' : { - if (is_admin() and isset($page['category']) and !is_adviser()) + if (is_admin() and isset($page['category'])) { $query = ' UPDATE '.CATEGORIES_TABLE.' @@ -159,10 +159,7 @@ UPDATE '.CATEGORIES_TABLE.' } case 'add_to_caddie' : { - if (!is_adviser()) - { - fill_caddie(array($page['image_id'])); - } + fill_caddie(array($page['image_id'])); redirect($url_self); break; } |