From 35cb0aa534eeeb9bf7c9a5237753aed2e8e8fd80 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 26 Aug 2005 08:52:02 +0000 Subject: [PATCH] Fixes git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1224 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_environment.inc | 14 ++++++++++---- plugins/personal/environment/environment.tpl | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/plugins/personal/environment/class_environment.inc b/plugins/personal/environment/class_environment.inc index 74ae70170..725fbdf93 100644 --- a/plugins/personal/environment/class_environment.inc +++ b/plugins/personal/environment/class_environment.inc @@ -485,9 +485,18 @@ class environment extends plugin if($this->acl != "#none#"){ $smarty->assign("useProfileACL",""); }else{ - $smarty->assign("gotoProfileFlagsACL"," disabled "); + $smarty->assign("gotoProfileFlag_CACL"," disabled "); + $smarty->assign("gotoProfileServerACL"," disabled "); + } + + if(!$this->useProfile){ + $smarty->assign("gotoProfileFlag_CACL"," disabled "); $smarty->assign("gotoProfileServerACL"," disabled "); } + + + + /* Als smarty vars are set. Get smarty template and generate output */ $display.= $smarty->fetch(get_template_path('environment.tpl', TRUE,dirname(__FILE__))); @@ -711,8 +720,6 @@ class environment extends plugin } } - plugin::save(); - if(isset($this->attrs['gotoPrinter'])){ unset($this->attrs['gotoPrinter']); } @@ -773,7 +780,6 @@ class environment extends plugin } } - $ldap->cat ($this->dn); if ($ldap->fetch()){ $mode= "modify"; diff --git a/plugins/personal/environment/environment.tpl b/plugins/personal/environment/environment.tpl index ce678dc12..467120c77 100644 --- a/plugins/personal/environment/environment.tpl +++ b/plugins/personal/environment/environment.tpl @@ -38,7 +38,7 @@ {t}Use local caching{/t} - + -- 2.30.2