X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fogroups%2Fclass_termgroup.inc;h=3d9a69b5603c6b336972758f9925f25318a577a9;hb=ef66e2cb67f5656eb0cfbe872d397d3abb819fa5;hp=f803cb85adb6880f89b3fd21abf65925f19665bb;hpb=f1ca520daf95525953d6e03c5bb0abf7c2648171;p=gosa.git diff --git a/plugins/admin/ogroups/class_termgroup.inc b/plugins/admin/ogroups/class_termgroup.inc index f803cb85a..3d9a69b56 100644 --- a/plugins/admin/ogroups/class_termgroup.inc +++ b/plugins/admin/ogroups/class_termgroup.inc @@ -3,9 +3,6 @@ class termgroup extends plugin { /* attribute list for save action */ - var $attributes= array("gotoMode","gotoSyslogServer", "gotoNtpServer"); - var $objectclasses= array("gotoWorkstationTemplate"); - var $members= array(); var $gotoMode = "locked"; @@ -25,7 +22,9 @@ class termgroup extends plugin "memcheck" => "memcheck", "sysinfo" => "sysinfo"); - var $CopyPasteVars = array("gotoNtpServers","modes","inheritTimeServer"); + var $attributes = array("gotoMode","gotoSyslogServer", "gotoNtpServer"); + var $objectclasses = array("gotoWorkstationTemplate"); + var $CopyPasteVars = array("gotoNtpServers","modes","inheritTimeServer","members"); function termgroup ($config, $dn= NULL, $parent= NULL) { @@ -105,7 +104,7 @@ class termgroup extends plugin /* Call common method to give check the hook */ $message= plugin::check(); - if ($this->acl_is_createable() && $this->dn == "new"){ + if (!$this->acl_is_createable() && $this->dn == "new"){ $message[]= _("You have no permissions to create a workstation on this 'Base'."); } @@ -137,7 +136,7 @@ class termgroup extends plugin { /* Get required informations */ $og = $this->parent->by_object['ogroup']; - $allobs = $og->allobjects; + $allobs = $og->objcache; /* Get correct value for FAIstate */ $action = $this->mapActions[$act]; @@ -147,7 +146,7 @@ class termgroup extends plugin $ldap->cd ($this->config->current['BASE']); /* Foreach member of mthis ogroup ... */ - foreach($og->mem as $key ){ + foreach($og->member as $key ){ /* check objectClasses and create attributes array */ $attrs = array("FAIstate"=>$action); @@ -384,7 +383,7 @@ class termgroup extends plugin "plDescription" => _("System group"), "plSelfModify" => FALSE, "plDepends" => array(), - "plPriority" => 0, + "plPriority" => 5, "plSection" => array("administration"), "plCategory" => array("ogroups"), "plProvidedAcls"=> array(