From 50adce16ccb3acf89fa8058ff3614b6a03ed33e0 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 9 Aug 2006 11:05:23 +0000 Subject: [PATCH] Fixed acls for nagios git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4443 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/nagios/main.inc | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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"; -- 2.30.2