From 38c1322dc329b507e35859071a446ad54c8b36a7 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 26 Nov 2008 10:29:52 +0000 Subject: [PATCH] Updated userinfo -Implemented self-acls in get_category_permissions. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13038 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userinfo.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 699c7151f..4564beda6 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -466,6 +466,9 @@ class userinfo if($attribute == ""){ foreach($this->ocMapping[$ocs] as $oc){ if (isset($subacl['acl'][$ocs.'/'.$oc])){ + + if($dn != $this->dn && strpos($subacl['acl'][$ocs.'/'.$oc][0],"s") !== FALSE) continue; + foreach($subacl['acl'][$ocs.'/'.$oc] as $attr => $dummy){ $acl= $this->mergeACL($acl, $subacl['type'], $subacl['acl'][$ocs.'/'.$oc][$attr]); } @@ -474,6 +477,7 @@ class userinfo } }else{ if(isset($subacl['acl'][$ocs.'/'.$oc][0])){ + if($dn != $this->dn && strpos($subacl['acl'][$ocs.'/'.$oc][0],"s") !== FALSE) continue; $acl= $this->mergeACL($acl, $subacl['type'], $subacl['acl'][$ocs.'/'.$oc][0]); } } -- 2.30.2