summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 290bdaa)
raw | patch | inline | side by side (parent: 290bdaa)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Jan 2006 07:25:28 +0000 (07:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 16 Jan 2006 07:25:28 +0000 (07:25 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2482 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/environment/class_environment.inc | patch | blob | history |
diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc
index 39457399aae7982cfc759d911e8853c690e65b16..af7d2bcb17ec89d9485d210bf18fab803eab45ac 100644 (file)
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."));
}
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."));