From: hickert Date: Mon, 14 Jul 2008 09:13:24 +0000 (+0000) Subject: Updated environment entry locking. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e48b7fc5cb0cbd0f2d0b96caecdc91186b8d5b5a;p=gosa.git Updated environment entry locking. Fixed ACL checks for shares. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11619 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 5dd34b65c..4488e5568 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -739,7 +739,7 @@ class environment extends plugin $tmp = array(); - if($this->acl_is_readable("gotoShares")){ + if($this->acl_is_readable("gotoShare")){ $tmp = $this->printOutAssignedShares(); } @@ -1772,19 +1772,15 @@ class environment extends plugin "plProvidedAcls" => array( - "gotoProfileFlagL" => _("Resolution changeable during session") , - "gotoProfileFlagC" => _("Cache profile localy") , - - "gotoProfileQuota" => _("Profile quota") , "gotoProfileServer" => _("Profile server") , - - "gotoXResolution" => _("Resolution") , - "gotoKioskProfile" => _("Kiosk profile") , - - "gosaDefaultPrinter" => _("Default printer") , - "gotoLogonScript" => _("Logon script") , + "gotoProfileQuota" => _("Profile quota") , + "gotoProfileFlagC" => _("Cache profile localy") , + "gotoShare" => _("Shares"), "gotoHotplugDevice" => _("Hotplug devices"), - "gotoShare" => _("Shares")) + "gotoKioskProfile" => _("Kiosk profile") , + "gotoProfileFlagL" => _("Resolution changeable during session") , + "gotoXResolution" => _("Resolution") , + "gotoLogonScript" => _("Logon script")) )); } } diff --git a/gosa-plugins/goto/personal/environment/main.inc b/gosa-plugins/goto/personal/environment/main.inc index 12a3b7a2b..c807c3f7a 100644 --- a/gosa-plugins/goto/personal/environment/main.inc +++ b/gosa-plugins/goto/personal/environment/main.inc @@ -19,10 +19,11 @@ */ $lock_msg = ""; if (!$remove_lock){ + /* Reset requested? */ if (isset($_POST['edit_cancel']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){ -# del_lock ($ui->dn); + del_lock ($ui->dn); session::un_set ('edit'); session::un_set ('environment'); }