From 8c118ff201ec1fce77f1673865fafed4405bd3ce Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 21 Aug 2006 12:16:40 +0000 Subject: [PATCH] Made remove work git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4495 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 8b95063a4..a0630f10d 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -315,11 +315,15 @@ class userManagement extends plugin /* Some nice guy may send this as POST, so we've to check for the permissions again. */ - if (chkacl($this->acl, "delete") == ""){ + + $ui = get_userinfo(); + $acl = $ui->get_permissions($this->dn, "users/all"); + + if (preg_match('/d/', $acl)){ /* Delete request is permitted, perform LDAP action */ $this->usertab= new usertabs($this->config, $this->config->data['TABS']['USERTABS'],$this->dn); - $this->usertab->set_acl(array($this->acl)); + $this->usertab->set_acl_base(); $this->usertab->delete (); gosa_log ("User object '".$this->dn."' has been removed"); unset ($this->usertab); -- 2.30.2