From: hickert Date: Mon, 17 Jul 2006 12:15:32 +0000 (+0000) Subject: Some update X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6ec723b669518b711df81da7571d7d4b18c6d6b2;p=gosa.git Some update git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4179 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index bc2522c98..2f791c39d 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -943,14 +943,11 @@ class user extends plugin } $ui= get_userinfo(); - $acl= get_permissions ($new_dn, $ui->subtreeACL); - $acl= get_module_permission($acl, "user", $new_dn); - if ($this->dn == "new" && chkacl($acl, "create") != ""){ + #FIXME How is the create flag stored ?, Add check for rename move ... + if ($this->dn == "new" && !obj_is_writable($this->dn, "user","create")){ $message[]= _("You have no permissions to create a user on this 'Base'."); } elseif ($this->dn != $new_dn && $this->dn != "new"){ - $acl= get_permissions ($this->dn, $ui->subtreeACL); - $acl= get_module_permission($acl, "user", $this->dn); - if (chkacl($acl, "create") != ""){ + if (!obj_is_writable($this->dn, "user","create")){ $message[]= _("You have no permissions to move a user from the original 'Base'."); } }