From e707e948577b927a28b86545d345e7b6c8606352 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sun, 15 Jul 2012 16:31:28 +0200 Subject: subadmins can now add users --- settings/templates/users.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'settings/templates') diff --git a/settings/templates/users.php b/settings/templates/users.php index b16aa1ae16c..649fce107db 100644 --- a/settings/templates/users.php +++ b/settings/templates/users.php @@ -6,9 +6,12 @@ */ $allGroups=array(); foreach($_["groups"] as $group) { - $allGroups[]=$group['name']; + $allGroups[] = $group['name']; } -$_['subadmingroups'] = $_['groups']; +$_['subadmingroups'] = $allGroups; +$items = array_flip($_['subadmingroups']); +unset($items['admin']); +$_['subadmingroups'] = array_flip($items); ?>
@@ -16,6 +19,7 @@ $_['subadmingroups'] = $_['groups']; -- cgit v1.2.3