summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/auth.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/auth.php b/inc/auth.php
index a71a5aa86..9164522bf 100644
--- a/inc/auth.php
+++ b/inc/auth.php
@@ -423,11 +423,11 @@ function auth_aclcheck($id,$user,$groups){
$ns = getNS($id);
$perm = -1;
- if($user){
+ if($user || count($groups)){
//add ALL group
$groups[] = '@ALL';
//add User
- $groups[] = $user;
+ if($user) $groups[] = $user;
//build regexp
$regexp = join('|',$groups);
}else{