From: hickert Date: Wed, 20 Sep 2006 04:25:49 +0000 (+0000) Subject: Updated serverservice, only allow remove if permitted X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ca02e8a29c4b0f09a6ad631f0280f01c24015d59;p=gosa.git Updated serverservice, only allow remove if permitted git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4734 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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; + } }