From 319b380f488db2849f98abc3870a2a952e6d0776 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 15 Jul 2008 06:53:08 +0000 Subject: [PATCH] Updated ACL check for My Account plugins git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11639 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/personal/generic/main.inc | 2 +- gosa-core/plugins/personal/posix/main.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/personal/generic/main.inc b/gosa-core/plugins/personal/generic/main.inc index 4f5b33c24..0ab96b0de 100644 --- a/gosa-core/plugins/personal/generic/main.inc +++ b/gosa-core/plugins/personal/generic/main.inc @@ -177,7 +177,7 @@ if (!$remove_lock){ } /* Only display edit button if there is at least one attribute editable */ - if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/user"))){ + if(preg_match("/r/",$ui->get_permissions($ui->dn,"users/user"))){ if ($fn == "edit"){ $info.= "\"\" ". msgPool::clickEditToChange(); diff --git a/gosa-core/plugins/personal/posix/main.inc b/gosa-core/plugins/personal/posix/main.inc index a4d0e12af..d04c3db17 100644 --- a/gosa-core/plugins/personal/posix/main.inc +++ b/gosa-core/plugins/personal/posix/main.inc @@ -115,7 +115,7 @@ if (!$remove_lock){ "\"> ".$ui->dn." "; /* Only display edit button if there is at least one attribute editable */ - if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/posixAccount"))){ + if(preg_match("/r/",$ui->get_permissions($ui->dn,"users/posixAccount"))){ $info.= "\"\" ". msgPool::clickEditToChange(); -- 2.30.2