Code

Removed duplicated addslashes
[gosa.git] / plugins / personal / generic / main.inc
index 40b00534a382c85c394c6e2e71f14ca9bed7bd16..729d9d5c15e4b348d9e1f87f87770dced9a624db 100644 (file)
@@ -166,8 +166,7 @@ if (!$remove_lock){
       }
 
       /* Only display edit button if there is at least one attribute editable */
-      $display .= "edit buttons does not work.";
-      if(preg_match("/w/",$ui->get_category_permissions($ui->dn,"users/user"))){
+      if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/user"))){
         if ($fn == "edit"){
           $info.= "<img class=\"center\" alt=\"\" align=\"middle\" src=\"".get_template_path('images/lamp.png')."\"> ".
             _("Click the 'Edit' button below to change informations in this dialog");