index 8d7f30d97950d414068d30a33f5d3151f6e2bb51..729d9d5c15e4b348d9e1f87f87770dced9a624db 100644 (file)
"\"> ".$ui->dn." ";
}
- echo "Check acl here; Only display edit button if we are able to edit at least one attribute. Line 168";
- 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");
- $display.= "<input type=submit name=\"$fn\" value=\"$str\">\n";
+ /* Only display edit button if there is at least one attribute editable */
+ 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");
+ $display.= "<input type=submit name=\"$fn\" value=\"$str\">\n";
+ }
}
+
$display.= "<input type=\"hidden\" name=\"ignore\">\n";
}
$display.= "</p>\n";