From: cajus Date: Mon, 21 Aug 2006 12:16:40 +0000 (+0000) Subject: Made remove work X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8c118ff201ec1fce77f1673865fafed4405bd3ce;p=gosa.git Made remove work git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4495 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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);