From: hickert Date: Mon, 14 Jul 2008 08:07:50 +0000 (+0000) Subject: Updated enviroment edit handling. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8c72dbe4975b597a382b476c79f30a6111079bc3;p=gosa.git Updated enviroment edit handling. -We were not able to edit enviroment settings frm My Account. -Kiosk profile settings were not correctly "greyed-out" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11616 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/personal/environment/class_environment.inc b/gosa-plugins/goto/personal/environment/class_environment.inc index a19bb719f..511565d75 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -275,7 +275,7 @@ class environment extends plugin $cnt = 0; $ui = get_userinfo(); while($attrs = $ldap->fetch()){ - $acl = $ui->get_permissions($attrs['dn'],"server/goShareServer",""); + $acl = $ui->get_permissions($attrs['dn'],"server/goKioskService",""); for($i = 0 ; $i < $attrs['gotoKioskProfile']['count'] ; $i ++){ if(preg_match("/r/",$acl) || $this->gotoKioskProfile_Server == $attrs['cn'][0]){ $name = preg_replace("/^.*\//","",$attrs['gotoKioskProfile'][$i]); diff --git a/gosa-plugins/goto/personal/environment/environment.tpl b/gosa-plugins/goto/personal/environment/environment.tpl index b0784c5ce..637f6b896 100644 --- a/gosa-plugins/goto/personal/environment/environment.tpl +++ b/gosa-plugins/goto/personal/environment/environment.tpl @@ -116,6 +116,7 @@ + {if $kiosk_enabled } @@ -132,18 +133,22 @@ changeState('kiosk_profile');"> {/if} {t}Server{/t} +{render acl=$gotoKioskProfileACL} +{/render}
{if $kiosk_server != "none"} {t}Profile{/t} +{render acl=$gotoKioskProfileACL} +{/render} {else}   {/if} diff --git a/gosa-plugins/goto/personal/environment/main.inc b/gosa-plugins/goto/personal/environment/main.inc index 23f97b23a..12a3b7a2b 100644 --- a/gosa-plugins/goto/personal/environment/main.inc +++ b/gosa-plugins/goto/personal/environment/main.inc @@ -43,7 +43,7 @@ if (!$remove_lock){ } /* Enter edit mode? */ - if (isset($_POST['edit'])){ + if (isset($_POST['edit']) || isset($_POST['delete_lock'])){ /* Check locking */ if (($username= get_lock($ui->dn)) != ""){ @@ -94,11 +94,11 @@ if (!$remove_lock){ $info= ""; /* Show page footer depending on the mode */ - if (!$environment->in_dialog && $environment->is_account && empty($lock_msg)){ + if (!$environment->in_dialog && !$environment->dialog && $environment->is_account && empty($lock_msg)){ $display.= "

"; /* Are we in edit mode? */ - if ((session::is_set('edit'))&&($environment->dialog===NULL)){ + if (session::is_set('edit')){ $display.= "\n"; $display.= " "; $display.= "\n";