From d8c7fed165692fc475b8bf6371628eecca866a0c Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 29 Mar 2010 12:57:38 +0000 Subject: [PATCH] Updated ACL check in class management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17353 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_management.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gosa-core/include/class_management.inc b/gosa-core/include/class_management.inc index 7b0bdc988..b63a70198 100644 --- a/gosa-core/include/class_management.inc +++ b/gosa-core/include/class_management.inc @@ -342,21 +342,23 @@ class management * @param Array 'all' A combination of both 'action' and 'target'. */ function removeEntryConfirmed($action="",$target=array(),$all=array(), - $altTabClass="",$altTabType="",$altAclCategory="") + $altTabClass="",$altTabType="", $altAclCategory="",$altAclPlugin="") { $tabType = $this->tabType; $tabClass = $this->tabClass; $aclCategory = $this->aclCategory; + $aclPlugin = $this->aclPlugin; if(!empty($altTabClass)) $tabClass = $altTabClass; if(!empty($altTabType)) $tabType = $altTabType; if(!empty($altAclCategory)) $aclCategory = $altAclCategory; + if(!empty($altAclPlugin)) $aclPlugin = $altAclPlugin; @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__,$target,"Entry removel confirmed!"); foreach($this->dns as $key => $dn){ // Check permissions, are we allowed to remove this object? - $acl = $this->ui->get_permissions($dn, $this->aclCategory."/".$this->aclPlugin); + $acl = $this->ui->get_permissions($dn, $aclCategory."/".$aclPlugin); if(preg_match("/d/",$acl)){ // Delete the object -- 2.30.2