summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6523860)
raw | patch | inline | side by side (parent: 6523860)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Aug 2006 11:25:04 +0000 (11:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 3 Aug 2006 11:25:04 +0000 (11:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4379 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/main.inc | patch | blob | history |
index 8d7f30d97950d414068d30a33f5d3151f6e2bb51..3c804fabe066df6f8e512ad450be7cafaca22bb4 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_category_permissions($ui->dn,"users"))){
+ 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";