From 78d551a11372939b0df6dfa0250f58c9706792d3 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 18 Jul 2006 05:20:35 +0000 Subject: [PATCH] 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 --- include/class_acl.inc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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']; + } } } -- 2.30.2