summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-07-28 13:41:11 -0400
committerjim-p <jimp@pfsense.org>2010-07-28 13:53:09 -0400
commitb0c231e4f391f57ca7c20e2bd823bb585f131a2f (patch)
tree61057c369a4766442092d9ee611fab8990f5e2fd /etc
parent1295e7691a5b50685e6baf176c3e677aba0fd17c (diff)
downloadpfsense-b0c231e4f391f57ca7c20e2bd823bb585f131a2f.zip
pfsense-b0c231e4f391f57ca7c20e2bd823bb585f131a2f.tar.gz
Don't maintain a membership for the 'all' group when it includes everyone. Just return it for everyone if the 'all' group is requested. For the count of the 'all' group, just return a count of all the users on the system. Fixes #613
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/auth.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc
index 85a5452..f06a4f6 100644
--- a/etc/inc/auth.inc
+++ b/etc/inc/auth.inc
@@ -417,6 +417,9 @@ function local_user_get_groups($user, $all = false) {
if (in_array($user['uid'], $group['member']))
$groups[] = $group['name'];
+ if ( $all )
+ $groups[] = "all";
+
sort($groups);
return $groups;
OpenPOWER on IntegriCloud