summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82e0e90)
raw | patch | inline | side by side (parent: 82e0e90)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Aug 2006 12:16:40 +0000 (12:16 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Aug 2006 12:16:40 +0000 (12:16 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4495 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/users/class_userManagement.inc | patch | blob | history |
diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc
index 8b95063a4f4b69a3bae4d826f2cc3995b77cb693..a0630f10d5b4c185f1d7435c6a47b2a0522263ad 100644 (file)
/* 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);