aboutsummaryrefslogtreecommitdiffstats
path: root/admin/user_list.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-12-12 09:51:47 +0000
committerplegall <plg@piwigo.org>2013-12-12 09:51:47 +0000
commit97371a948ae1d212a61c8200ce93380d39ee2fa1 (patch)
tree470aa836ce856ede006fe573b5fb518bef4f9ba4 /admin/user_list.php
parente824dce312ce66c8a68695a11c248d3eb95cc272 (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.php11
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'],
)
);