Code

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

gosa-plugins/netatalk/personal/netatalk/main.inc

index 8e5a32e703e95a00ef829bd32208615b3af7cac2..cfaa7862aba0eeae741dba7ae9267ee80600387e 100644 (file)
@@ -99,7 +99,7 @@ if (!$remove_lock) {
       $info = "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/locked.png')."\"> ".$ui->dn."&nbsp;";
     } else {
       $info = "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/unlocked.png')."\"> ".$ui->dn."&nbsp;";
-      if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/netatalk"))){
+      if(preg_match("/r/",$ui->get_permissions($ui->dn,"users/netatalk"))){
         $info .= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/on.png')."\"> ".msgPool::clickEditToChange();
         $display .= "<input type=submit name=\"edit\" value=\"".msgPool::editButton()."\">\n";
       }