Code

Made self-edit mode depend from multiple objectclasses, additionally
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 05:20:35 +0000 (05:20 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Jul 2006 05:20:35 +0000 (05:20 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4184 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_acl.inc

index 637d0ca845565e65041801a856f09fe69013e66d..ee441d6812fb32909e6ed317d8f666daed53d5b2 100644 (file)
@@ -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'];
+              }
             }
           }