summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c24e968)
raw | patch | inline | side by side (parent: c24e968)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 3 Nov 2006 04:30:22 +0000 (04:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 3 Nov 2006 04:30:22 +0000 (04:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4999 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 8987b6a76919080739e7b11a7e59406276ed186a..d118a64c07630a73585739cf6048bb248b56472c 100644 (file)
if (isset($_POST['password_finish'])){
/* For security reasons, check if user is allowed to set password again */
- $ui= get_userinfo();
- $acl= $ui->get_permissions($this->dn, "users/user", 'userPassword');
- $cacl= $ui->get_permissions($this->dn, "users/all");
+ $ui = get_userinfo();
+ $dn = $this->usertab->dn;
+ $acl = $ui->get_permissions($dn, "users/password");
+ $cacl= $ui->get_permissions($dn, "users/user");
+
if (preg_match('/w/', $acl) || preg_match('/c/', $cacl)){
/* Missing permissions, show message */
print_red (_("You are not allowed to set this users password!"));
}
-
/* Clean session, delete lock */
del_lock ($this->dn);
unset ($this->usertab);
for the permissions again. */
$ui = get_userinfo();
- $acl = $ui->get_permissions($this->dn, "users/all");
+ $acl = $ui->get_permissions($this->dn, "users/user");
if (preg_match('/d/', $acl)){