From: hickert Date: Wed, 9 Aug 2006 11:05:23 +0000 (+0000) Subject: Fixed acls for nagios X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=50adce16ccb3acf89fa8058ff3614b6a03ed33e0;p=gosa.git Fixed acls for nagios git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4443 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/nagios/main.inc b/plugins/personal/nagios/main.inc index a3373c242..800190568 100644 --- a/plugins/personal/nagios/main.inc +++ b/plugins/personal/nagios/main.inc @@ -30,6 +30,8 @@ if (!$remove_lock){ /* 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']; @@ -99,11 +101,11 @@ if (!$remove_lock){ $info= "\"\" ".$ui->dn." "; - echo "FIXME : user -> nagios, 102 Only display edit button if there is at least one attribute editable."; - $info.= "\"\" "._("Click the 'Edit' button below to change informations in this dialog"); - $display.= "\n"; - + if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/nagiosAccount"))){ + $info.= "\"\" "._("Click the 'Edit' button below to change informations in this dialog"); + $display.= "\n"; + } $display.= "\n"; } $display.= "

\n";