From 9cc2e986a8cd7ad731e7397516c684efd91b0076 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 3 Nov 2006 04:30:22 +0000 Subject: [PATCH] Fixed user Management acls . git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4999 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/users/class_userManagement.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/plugins/admin/users/class_userManagement.inc b/plugins/admin/users/class_userManagement.inc index 8987b6a76..d118a64c0 100644 --- a/plugins/admin/users/class_userManagement.inc +++ b/plugins/admin/users/class_userManagement.inc @@ -203,9 +203,11 @@ class userManagement extends plugin 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)){ @@ -272,7 +274,6 @@ class userManagement extends plugin /* 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); @@ -322,7 +323,7 @@ class userManagement extends plugin 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)){ -- 2.30.2