From 5f6de8b8490de7558ae18ccd110b2de86db0c630 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 29 Jul 2010 13:28:05 +0000 Subject: [PATCH] Fixed aclRole loading -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 --- gosa-core/plugins/admin/acl/class_aclRole.inc | 23 +++++++++++-------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/gosa-core/plugins/admin/acl/class_aclRole.inc b/gosa-core/plugins/admin/acl/class_aclRole.inc index cd724226f..c3b121fa8 100644 --- a/gosa-core/plugins/admin/acl/class_aclRole.inc +++ b/gosa-core/plugins/admin/acl/class_aclRole.inc @@ -109,18 +109,21 @@ class aclrole extends acl $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']; - } } } -- 2.30.2