From 77bc757eea39cc6d7d02d36885e1e9317d8e7c6c Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 20 Sep 2006 04:14:17 +0000 Subject: [PATCH] Remove some old acl stuff. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4730 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_serverService.inc | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/plugins/admin/systems/class_serverService.inc b/plugins/admin/systems/class_serverService.inc index 57138cca8..638598184 100644 --- a/plugins/admin/systems/class_serverService.inc +++ b/plugins/admin/systems/class_serverService.inc @@ -37,16 +37,11 @@ class ServerService extends plugin { plugin::plugin($config); $this->dn= $dn; - $ui= get_userinfo(); - $this->acl= get_permissions ($ui->dn, $ui->subtreeACL); - foreach ($config->data['TABS']['SERVERSERVICE'] as $plug){ $name= $plug['CLASS']; $this->plugin_names[]= $name; $this->plugins[$name]= new $name($config, $dn); - $this->plugins[$name]->acl= get_module_permission($this->acl, "$name", $ui->dn); } - $this->divList = new divListSystemService($config,$this); } @@ -87,11 +82,12 @@ class ServerService extends plugin /* Handle state changes for services */ - $map = array( "startServices" => array("type" => START_SERVICE , "service" => ALL_SERVICES), - "stopServices" => array("type" => STOP_SERVICE , "service" => ALL_SERVICES), - "restartServices" => array("type" => RESTART_SERVICE , "service" => ALL_SERVICES), "StartSingleService" => array("type" => START_SERVICE , "service" => $s_entry), - "StopSingleService" => array("type" => STOP_SERVICE , "service" => $s_entry), - "RestartSingleService" => array("type" => RESTART_SERVICE , "service" => $s_entry)); + $map = array( "startServices" => array("type" => START_SERVICE , "service" => ALL_SERVICES), + "stopServices" => array("type" => STOP_SERVICE , "service" => ALL_SERVICES), + "restartServices" => array("type" => RESTART_SERVICE , "service" => ALL_SERVICES), + "StartSingleService" => array("type" => START_SERVICE , "service" => $s_entry), + "StopSingleService" => array("type" => STOP_SERVICE , "service" => $s_entry), + "RestartSingleService" => array("type" => RESTART_SERVICE , "service" => $s_entry)); if(isset($map[$s_action])){ $type = $map[$s_action]['type']; $service = $map[$s_action]['service']; @@ -107,10 +103,7 @@ class ServerService extends plugin /* Remove service */ if($s_action == "RemoveSingleService"){ - $this->plugins[$s_entry]->is_account= false; - $this->plugins[$s_entry] = NULL; $this->plugins[$s_entry] = new $s_entry($this->config,$this->dn); - $this->plugins[$s_entry]->acl = $this->acl; $this->plugins[$s_entry]->is_account = false; } -- 2.30.2