From: cajus Date: Tue, 18 Jul 2006 05:20:35 +0000 (+0000) Subject: Made self-edit mode depend from multiple objectclasses, additionally X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=78d551a11372939b0df6dfa0250f58c9706792d3;p=gosa.git Made self-edit mode depend from multiple objectclasses, additionally git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4184 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/class_acl.inc b/include/class_acl.inc index 637d0ca84..ee441d681 100644 --- a/include/class_acl.inc +++ b/include/class_acl.inc @@ -125,8 +125,17 @@ class acl extends plugin $this->aclObjects[$idx]= $data['description']; /* Additionally filter the classes we're interested in in "self edit" mode */ - if (in_array_ics($data['objectClass'], $oc)){ - $this->myAclObjects[$class]= $acls['plDescription']; + if (is_array($data['objectClass'])){ + foreach($data['objectClass'] as $objectClass){ + if (in_array_ics($objectClass, $oc)){ + $this->myAclObjects[$class]= $acls['plDescription']; + break; + } + } + } else { + if (in_array_ics($data['objectClass'], $oc)){ + $this->myAclObjects[$class]= $acls['plDescription']; + } } }