summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 676ccff)
raw | patch | inline | side by side (parent: 676ccff)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jul 2010 13:28:05 +0000 (13:28 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 29 Jul 2010 13:28:05 +0000 (13:28 +0000) |
-Loading plugin definitions was defekt.
-An error occured while plugins were loaded whithout an plCategory statement
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19252 594d385d-05f5-0310-b6e9-bd551577e9d8
-An error occured while plugins were loaded whithout an plCategory statement
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19252 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/acl/class_aclRole.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc
index cd724226f82ea6ac21b13e68d13616cb3c6894f5..c3b121fa87b8c1f9378b25239412927633a9608f 100644 (file)
$this->ocMapping[$idx][]= $class;
$this->aclObjects[$idx]= $data['description'];
+
/* Additionally filter the classes we're interested in in "self edit" mode */
- if (is_array($data['objectClass'])){
- foreach($data['objectClass'] as $objectClass){
- if (in_array_ics($objectClass, $oc)){
- $this->myAclObjects[$idx.'/'.$class]= $acls['plDescription'];
- break;
+ if(isset($data['objectClass'])){
+ if (is_array($data['objectClass'])){
+ foreach($data['objectClass'] as $objectClass){
+ if (in_array_ics($objectClass, $oc)){
+ $this->myAclObjects[$idx.'/'.$class]= $acls['plDescription'];
+ break;
+ }
+ }
+ } else {
+ if (in_array_ics($data['objectClass'], $oc)){
+ $this->myAclObjects[$idx.'/'.$class]= $acls['plDescription'];
+ }
}
- }
- } else {
- if (in_array_ics($data['objectClass'], $oc)){
- $this->myAclObjects[$idx.'/'.$class]= $acls['plDescription'];
- }
}
}