diff options
author | patdenice <patdenice@piwigo.org> | 2010-12-14 13:47:24 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2010-12-14 13:47:24 +0000 |
commit | 731f8888a45d4b48e94bff05187e0e2ca40d4ef5 (patch) | |
tree | 1fc44a3a59beafe636b74127498d0ed62decdc76 /plugins/admin_multi_view/controller.php | |
parent | bf1aa6fcf1f6d9038a0723e4f0213e416ec5ee62 (diff) |
feature 2060: Remove adviser mode.
First commit: only php files.
git-svn-id: http://piwigo.org/svn/trunk@8126 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | plugins/admin_multi_view/controller.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/admin_multi_view/controller.php b/plugins/admin_multi_view/controller.php index d2cd612c2..2c61a9bc6 100644 --- a/plugins/admin_multi_view/controller.php +++ b/plugins/admin_multi_view/controller.php @@ -30,8 +30,6 @@ $refresh_main = false; if ( isset($_GET['view_as']) ) { - if ( is_adviser() and $user['id']!=$_GET['view_as'] and $conf['guest_id']!=$_GET['view_as']) - die('security error'); if ($user['id']===$_GET['view_as']) pwg_unset_session_var( 'multiview_as' ); else @@ -111,14 +109,7 @@ $my_url = get_root_url().'plugins/'.basename(dirname(__FILE__)).'/'.basename(__F // | users | $query = ' SELECT '.$conf['user_fields']['id'].' AS id,'.$conf['user_fields']['username'].' AS username -FROM '.USERS_TABLE; -if (is_adviser()) -{ - $query .=' - WHERE '.$conf['user_fields']['id']. ' IN ('.$user['id'].','.$conf['guest_id'].') -'; -} -$query .=' +FROM '.USERS_TABLE.' ORDER BY CONVERT('.$conf['user_fields']['username'].',CHAR) ;'; $user_map = simple_hash_from_query($query, 'id', 'username'); |