summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8c118ff)
raw | patch | inline | side by side (parent: 8c118ff)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Aug 2006 12:28:30 +0000 (12:28 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 21 Aug 2006 12:28:30 +0000 (12:28 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4496 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 a0630f10d5b4c185f1d7435c6a47b2a0522263ad..cc6fc5f060558c7967ca0eb34c259cdb16e9dd7d 100644 (file)
if (isset($_POST['password_finish'])){
/* For security reasons, check if user is allowed to set password again */
- if (chkacl($this->acl, "password") == "" || chkacl($this->acl, "create")){
+ $ui= get_userinfo();
+ $acl= $ui->get_permissions($this->dn, "users/user", 'userPassword');
+ $cacl= $ui->get_permissions($this->dn, "users/all");
+
+ if (preg_match('/w/', $acl) || preg_match('/c/', $cacl)){
/* Check input and feed errors into 'message' */
$message= array();