From 65f5245abd51ffc345101bdd2e10879a0bc2a70a Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 24 Mar 2010 09:46:43 +0000 Subject: [PATCH] Increased ACL checks -We should make this configureable, this costs time. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17039 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_userinfo.inc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gosa-core/include/class_userinfo.inc b/gosa-core/include/class_userinfo.inc index 4ac5ea37c..bcff8c836 100644 --- a/gosa-core/include/class_userinfo.inc +++ b/gosa-core/include/class_userinfo.inc @@ -372,6 +372,13 @@ class userinfo trigger_error("Invalid ACL class '".$aclClass."'! ({$object})"); return(""); } + if(isset($aclClass) &&class_available($aclClass)){ + $plInfo = call_user_func(array($aclClass, 'plInfo')); + if(!empty($attribute) && !isset($plInfo['plProvidedAcls'][$attribute])){ + trigger_error("Invalid ACL attribute '".$attribute."'! ({$object})"); + return(""); + } + } /* Detect the set of ACLs we have to check for this object */ -- 2.30.2