Code

Updated ACL check for My Account plugins
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jul 2008 06:53:08 +0000 (06:53 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 15 Jul 2008 06:53:08 +0000 (06:53 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11639 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/personal/generic/main.inc
gosa-core/plugins/personal/posix/main.inc

index 4f5b33c249250eb13b036ef4125cb8b3ad9f8423..0ab96b0debdec1d25068019169992f21b7f8eb0a 100644 (file)
@@ -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.= "<img class=\"center\" alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/on.png')."\"> ".
             msgPool::clickEditToChange();
index a4d0e12af1875201f5ce3998d8f41f0947e3caed..d04c3db170181c9548b231fc79dcd06575fd9760 100644 (file)
@@ -115,7 +115,7 @@ if (!$remove_lock){
              "\"> ".$ui->dn."&nbsp;";
 
       /* 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.= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/on.png')."\"> ".
           msgPool::clickEditToChange();