From ca02e8a29c4b0f09a6ad631f0280f01c24015d59 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 20 Sep 2006 04:25:49 +0000 Subject: [PATCH] Updated serverservice, only allow remove if permitted git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4734 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_serverService.inc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/admin/systems/class_serverService.inc b/plugins/admin/systems/class_serverService.inc index 638598184..514563c8a 100644 --- a/plugins/admin/systems/class_serverService.inc +++ b/plugins/admin/systems/class_serverService.inc @@ -103,8 +103,15 @@ class ServerService extends plugin /* Remove service */ if($s_action == "RemoveSingleService"){ - $this->plugins[$s_entry] = new $s_entry($this->config,$this->dn); - $this->plugins[$s_entry]->is_account = false; + + /* Create resetted obj */ + $new_obj = new $s_entry($this->config,$this->dn); + $tmp = $new_obj->getListEntry(); + + if($tmp['AllowRemove']){ + $this->plugins[$s_entry] = new $s_entry($this->config,$this->dn); + $this->plugins[$s_entry]->is_account = false; + } } -- 2.30.2