From 326a3170d6e4312b9e069047e440b6a28f9dd928 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 26 Nov 2010 14:13:17 +0000 Subject: [PATCH] Fixed problem with sudo plugin git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20384 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc | 7 ++++++- gosa-plugins/sudo/admin/sudo/generic.tpl | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc index b1b43a233..b99f944b0 100644 --- a/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc +++ b/gosa-plugins/sudo/admin/sudo/class_sudoGeneric.inc @@ -42,7 +42,9 @@ class sudo extends plugin public $ignore_account = TRUE; + public $orig_dn; + private $systemEnabled = FALSE; /*! \brief Returns to the base department for sudo roles. This department is then used to store new roles. @@ -63,6 +65,8 @@ class sudo extends plugin { plugin::plugin ($config, $dn); + $this->systemEnabled = class_available("systemSelect"); + $this->trustModeDialog = new trustModeDialog($this->config, $this->dn,NULL); $this->trustModeDialog->setAcl('sudo/sudo'); @@ -138,7 +142,7 @@ class sudo extends plugin return($trustModeDialog); } - $this->dialog = FALSE; +## $this->dialog = FALSE; /********************* Add users @@ -318,6 +322,7 @@ class sudo extends plugin *********************/ $smarty = get_smarty(); + $smarty->assign("systemEnabled", $this->systemEnabled); $smarty->assign("trustModeDialog" , $trustModeDialog); $smarty->assign("is_default",$this->is_default); foreach($this->attributes as $attr){ diff --git a/gosa-plugins/sudo/admin/sudo/generic.tpl b/gosa-plugins/sudo/admin/sudo/generic.tpl index 89170b926..467b9fec5 100644 --- a/gosa-plugins/sudo/admin/sudo/generic.tpl +++ b/gosa-plugins/sudo/admin/sudo/generic.tpl @@ -86,10 +86,11 @@ {/render} + {if $systemEnabled} {render acl=$sudoHostACL} - {/render} + {/if}
-- 2.30.2