summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 320d9da)
raw | patch | inline | side by side (parent: 320d9da)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Aug 2006 11:05:23 +0000 (11:05 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 9 Aug 2006 11:05:23 +0000 (11:05 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4443 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/nagios/main.inc | patch | blob | history |
index a3373c24207a266b70d00c8489349d82d1f90c0b..800190568466a513409c8f6de31ded7c742d681a 100644 (file)
/* Create mail object on demand */
if (!isset($_SESSION['nagiosAccount']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){
$_SESSION['nagiosAccount']= new nagiosAccount ($config, $ui->dn);
+ $_SESSION['nagiosAccount']->set_acl_base($ui->dn);
+ $_SESSION['nagiosAccount']->set_acl_category("users");
}
$nagiosAccount= $_SESSION['nagiosAccount'];
$info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/openlock.png').
"\"> ".$ui->dn." ";
- echo "FIXME : user -> nagios, 102 Only display edit button if there is at least one attribute editable.";
- $info.= "<img 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=\"edit\" value=\""._("Edit")."\">\n";
-
+ if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/nagiosAccount"))){
+ $info.= "<img 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=\"edit\" value=\""._("Edit")."\">\n";
+ }
$display.= "<input type=\"hidden\" name=\"ignore\">\n";
}
$display.= "</p>\n";