X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Finclude%2Fclass_userinfo.inc;h=06a9648d1782d875d72483966014d5fc683af4be;hb=7b9eac53d0a01b7a79fc31199e8983c333c86a43;hp=01315479d61e08eafce76df79a733e5cc2550c18;hpb=2d37f6ce56d1254c94c402fa47618dad42e40daf;p=gosa.git diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 01315479d..06a9648d1 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -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... */ @@ -243,6 +243,14 @@ class userinfo } + /* Returns an array containing all target objects we've permssions on. + */ + function get_acl_target_objects() + { + return(array_keys($this->ACLperPath)); + } + + function get_category_permissions($dn, $category, $any_acl = FALSE) { return(@$this->get_permissions($dn,$category.'/0',""));