diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/auth.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 8f66098..eeb0aef 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -68,6 +68,7 @@ function getAllowedGroups($logged_in_user) { $fdny = fopen("/tmp/groups","w"); fwrite($fdny, print_r($allowed, true)); fclose($fdny); + $allowed = array(); if(is_array($config['system']['group']) && is_array($allowed_groups)) { foreach($config['system']['group'] as $group) { if(in_array($group['name'], $allowed_groups)) { @@ -77,8 +78,7 @@ function getAllowedGroups($logged_in_user) { } } } - if(count($allowed)>1) - return $allowed; + return $allowed; } $final_allowed = array(); |