From 0c8872a1e9a1ec505c3a72a430fd25b23fddd177 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 23 Apr 2007 10:04:02 +0000 Subject: [PATCH] Skip roles when resolving acls git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6171 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_userinfo.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/class_userinfo.inc b/include/class_userinfo.inc index c25cab419..9ceefc964 100644 --- a/include/class_userinfo.inc +++ b/include/class_userinfo.inc @@ -182,6 +182,11 @@ class userinfo continue; } + if($subacl['type'] == "role") { + echo "role skipped"; + continue; + } + /* Per attribute ACL? */ if (isset($subacl['acl'][$object][$attribute])){ $acl= $this->mergeACL($acl, $subacl['type'], $subacl['acl'][$object][$attribute]); @@ -286,6 +291,11 @@ class userinfo $acl= $this->cleanACL($acl, TRUE); continue; } + + if($subacl['type'] == 'role'){ + echo "role skipped"; + continue; + } /* Per object ACL? */ foreach ($objects as $object){ -- 2.30.2