diff options
author | plegall <plg@piwigo.org> | 2013-12-12 09:51:47 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2013-12-12 09:51:47 +0000 |
commit | 97371a948ae1d212a61c8200ce93380d39ee2fa1 (patch) | |
tree | 470aa836ce856ede006fe573b5fb518bef4f9ba4 /admin/user_list.php | |
parent | e824dce312ce66c8a68695a11c248d3eb95cc272 (diff) |
feature 1668: hide "delete" link for protected users, hide "change username" and "email address" for guest
git-svn-id: http://piwigo.org/svn/trunk@25928 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/user_list.php')
-rw-r--r-- | admin/user_list.php | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/admin/user_list.php b/admin/user_list.php index ac88c4d60..d34ee5650 100644 --- a/admin/user_list.php +++ b/admin/user_list.php @@ -90,10 +90,15 @@ $template->assign( ) ); -// echo '<pre>'; print_r($users); echo '</pre>'; - $default_user = get_default_user_info(true); +$protected_users = array( + $user['id'], + $conf['guest_id'], + $conf['default_user_id'], + $conf['webmaster_id'], + ); + $template->assign( array( 'PWG_TOKEN' => get_pwg_token(), @@ -104,6 +109,8 @@ $template->assign( 'language_options' => get_languages(), 'language_selected' => get_default_language(), 'association_options' => $groups, + 'protected_users' => implode(',', array_unique($protected_users)), + 'guest_user' => $conf['guest_id'], ) ); |