Code

Return old attr, not new
[gosa.git] / gosa-core / include / class_userinfo.inc
index 01315479d61e08eafce76df79a733e5cc2550c18..65ac65c5860040eda79bb3ec612399280edbc372 100644 (file)
@@ -59,8 +59,8 @@ class userinfo
     }
 
     /* Restrictions? */
-    if (isset($attrs['gosaLoginRestrictions'])){
-      $this->restrictions= $attrs['gosaLoginRestrictions'];
+    if (isset($attrs['gosaLoginRestriction'])){
+      $this->restrictions= $attrs['gosaLoginRestriction'];
       unset($this->restrictions['count']);
     }
 
@@ -158,9 +158,9 @@ class userinfo
       foreach($aclc[$dn] as $idx => $type){
         $interresting= FALSE;
         
-        /* No members? This is good for all users... */
+        /* No members? This ACL rule is deactivated ... */
         if (!count($type['members'])){
-          $interresting= TRUE;
+          $interresting= FALSE; 
         } else {
 
           /* Inspect members... */