X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fsystems%2Fclass_workstationService.inc;fp=plugins%2Fadmin%2Fsystems%2Fclass_workstationService.inc;h=5684cbad93ce65567540527864e17b7bc4451261;hb=efbe47e65e5e58ab306f0c32df89f343ec6fa774;hp=57f9ede7b0673bce6571e48715367fddadae9c8f;hpb=a9353faabfcf75454bd81c7d1b02693959a09960;p=gosa.git diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc index 57f9ede7b..5684cbad9 100644 --- a/plugins/admin/systems/class_workstationService.inc +++ b/plugins/admin/systems/class_workstationService.inc @@ -246,11 +246,13 @@ class workservice extends plugin $this->is_account= !$this->is_account; } - /* Do we represent a valid terminal? */ - if (!$this->is_account && $this->parent == NULL){ - $display= "\"\" ". - _("This 'dn' has no terminal features.").""; - return ($display); + /* Do we need to flip is_account state? */ + if(isset($_POST['modify_state'])){ + if($this->is_account && $this->acl_is_removeable()){ + $this->is_account= FALSE; + }elseif(!$this->is_account && $this->acl_is_createable()){ + $this->is_account= TRUE; + } } /* Show main page */ @@ -262,7 +264,6 @@ class workservice extends plugin $smarty->assign($name."ACL",$this->getacl($name)); } - /* Arrays */ foreach(array("XMethods", "XDrivers", "XResolutions", "XColordepths", "XKbModels", "XKbVariants", @@ -350,7 +351,7 @@ class workservice extends plugin { plugin::save_object(); - if(isset($_POST['gotoXDriver'])){ + if((isset($_POST['gotoXDriver'])) && $this->acl_is_writeable("AutoSync")) { if(isset($_POST['AutoSync'])){ $this->AutoSync = true; }else{