summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fa4fe4a)
raw | patch | inline | side by side (parent: fa4fe4a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Jul 2006 12:15:32 +0000 (12:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 17 Jul 2006 12:15:32 +0000 (12:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4179 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history |
index bc2522c98e7bfff71469890b1b449209438d6acb..2f791c39d26b78bbbf6a545b153715aea81f5fcc 100644 (file)
}
$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'.");
}
}