summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a9353fa)
raw | patch | inline | side by side (parent: a9353fa)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 1 Sep 2006 07:04:03 +0000 (07:04 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 1 Sep 2006 07:04:03 +0000 (07:04 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4565 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/systems/class_workstationService.inc | patch | blob | history |
diff --git a/plugins/admin/systems/class_workstationService.inc b/plugins/admin/systems/class_workstationService.inc
index 57f9ede7b0673bce6571e48715367fddadae9c8f..5684cbad93ce65567540527864e17b7bc4451261 100644 (file)
$this->is_account= !$this->is_account;
}
- /* Do we represent a valid terminal? */
- if (!$this->is_account && $this->parent == NULL){
- $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
- _("This 'dn' has no terminal features.")."</b>";
- 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 */
$smarty->assign($name."ACL",$this->getacl($name));
}
-
/* Arrays */
foreach(array("XMethods", "XDrivers", "XResolutions", "XColordepths",
"XKbModels", "XKbVariants",
{
plugin::save_object();
- if(isset($_POST['gotoXDriver'])){
+ if((isset($_POST['gotoXDriver'])) && $this->acl_is_writeable("AutoSync")) {
if(isset($_POST['AutoSync'])){
$this->AutoSync = true;
}else{