From: hickert Date: Mon, 16 Jan 2006 07:25:28 +0000 (+0000) Subject: Fixed gruop environment tab / posix problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5c4402905d2dea876009b04a3894dfebb53bb7a2;p=gosa.git Fixed gruop environment tab / posix problem git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2482 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 39457399a..af7d2bcb1 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -251,7 +251,7 @@ class environment extends plugin If theres is no posixAccount enabled, you won't be able to enable environment extensions */ - if((isset($this->attrs['objectClass']))&&((in_array("posixAccount",$this->attrs['objectClass'])))){ + if((isset($this->parent->by_object['group']))||(isset($this->attrs['objectClass']))&&((in_array("posixAccount",$this->attrs['objectClass'])))){ // 4. There is a PosixAccount $display= $this->show_header(_("Add environment extension"), _("Environment extension disabled. You can enable it by clicking below.")); @@ -277,14 +277,14 @@ class environment extends plugin } if(isset($this->parent)){ + // 3. Account enabled . Editing from adminmenu if ($this->is_account){ $display= $this->show_header(_("Remove environment extension"), _("Environment extension enabled. You can disable it by clicking below.")); } else { - if((isset($this->attrs['objectClass'])) - &&((in_array("posixAccount",$this->attrs['objectClass']))) - ||($this->parent->by_object['posixAccount']->is_account==true)){ + + if($this->parent->by_object['posixAccount']->is_account==true){ // 4. There is a PosixAccount $display= $this->show_header(_("Add environment extension"), _("Environment extension disabled. You can enable it by clicking below."));