From babe22242508cfe23148aee5bf020c37dd8bc63b Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 13 Nov 2006 14:14:50 +0000 Subject: [PATCH] Fixed disappearing buttons git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5087 594d385d-05f5-0310-b6e9-bd551577e9d8 --- Changelog | 1 + plugins/personal/connectivity/main.inc | 1 + plugins/personal/environment/main.inc | 1 + plugins/personal/generic/main.inc | 2 ++ plugins/personal/mail/main.inc | 1 + plugins/personal/nagios/main.inc | 1 + plugins/personal/posix/main.inc | 1 + plugins/personal/samba/main.inc | 1 + 8 files changed, 9 insertions(+) diff --git a/Changelog b/Changelog index d93b1fddc..fe3e2cef8 100644 --- a/Changelog +++ b/Changelog @@ -13,6 +13,7 @@ GOsa2 changelog - Activated missing checks for IP and MAC - Fixed copy'n paste errors for netatalk - Various W3C fixes + - Fixed "My Account" mode, where buttons disappear after saving * gosa 2.5.5 - Added remove method for shared folder in kolab mode diff --git a/plugins/personal/connectivity/main.inc b/plugins/personal/connectivity/main.inc index 17cebd0e4..2a460f49c 100644 --- a/plugins/personal/connectivity/main.inc +++ b/plugins/personal/connectivity/main.inc @@ -67,6 +67,7 @@ if (!$remove_lock){ $connectivity->save (); gosa_log ("User/connectivity object'".$ui->dn."' has been saved"); $connectivity->acl= "#none#"; + $editacl= get_module_permission($acl, "connectivity", $ui->dn); del_lock ($ui->dn); sess_del ('edit'); diff --git a/plugins/personal/environment/main.inc b/plugins/personal/environment/main.inc index 6523d8d3f..b65c5fb9a 100644 --- a/plugins/personal/environment/main.inc +++ b/plugins/personal/environment/main.inc @@ -75,6 +75,7 @@ if (!$remove_lock){ $environment->save (); gosa_log ("User/environment object'".$ui->dn."' has been saved"); $environment->acl= "#none#"; + $editacl= get_module_permission($acl, "gotoEnvironment",$ui->dn); del_lock ($ui->dn); sess_del ('edit'); diff --git a/plugins/personal/generic/main.inc b/plugins/personal/generic/main.inc index 166db78ed..1a4aafec8 100644 --- a/plugins/personal/generic/main.inc +++ b/plugins/personal/generic/main.inc @@ -122,6 +122,7 @@ if (!$remove_lock){ $user->save (); gosa_log ("User/generic object'".$ui->dn."' has been saved"); $user->acl= "#none#"; + $editacl= get_module_permission($acl, "user", $ui->dn); del_lock ($ui->dn); sess_del ('edit'); @@ -174,6 +175,7 @@ if (!$remove_lock){ $info= "\"\" ".$ui->dn." "; } + if ($fn == "edit" && isset($editacl) && $editacl != "#none#"){ $info.= "\"\" ". _("Click the 'Edit' button below to change informations in this dialog"); diff --git a/plugins/personal/mail/main.inc b/plugins/personal/mail/main.inc index 892c271d4..160ce5841 100644 --- a/plugins/personal/mail/main.inc +++ b/plugins/personal/mail/main.inc @@ -75,6 +75,7 @@ if (!$remove_lock){ $mailAccount->save (); gosa_log ("User/mail object'".$ui->dn."' has been saved"); $mailAccount->acl= "#none#"; + $editacl= get_module_permission($acl, "mail", $ui->dn); del_lock ($ui->dn); sess_del ('edit'); diff --git a/plugins/personal/nagios/main.inc b/plugins/personal/nagios/main.inc index b74cd21b7..c893a5904 100644 --- a/plugins/personal/nagios/main.inc +++ b/plugins/personal/nagios/main.inc @@ -75,6 +75,7 @@ if (!$remove_lock){ $nagiosAccount->save (); gosa_log ("User/nagios object'".$ui->dn."' has been saved"); $nagiosAccount->acl= "#none#"; + $editacl= get_module_permission($acl, "nagiosAccount", $ui->dn); del_lock ($ui->dn); sess_del ('edit'); diff --git a/plugins/personal/posix/main.inc b/plugins/personal/posix/main.inc index f900b9312..4ce234561 100644 --- a/plugins/personal/posix/main.inc +++ b/plugins/personal/posix/main.inc @@ -81,6 +81,7 @@ if (!$remove_lock){ $posixAccount->save (); gosa_log ("User/posix object'".$ui->dn."' has been saved"); $posixAccount->acl= "#none#"; + $editacl= get_module_permission($acl, "posix", $ui->dn); del_lock ($ui->dn); sess_del ('edit'); diff --git a/plugins/personal/samba/main.inc b/plugins/personal/samba/main.inc index 8a983ca00..5a78b651a 100644 --- a/plugins/personal/samba/main.inc +++ b/plugins/personal/samba/main.inc @@ -76,6 +76,7 @@ if (!$remove_lock){ $sambaAccount->save (); gosa_log ("User/samba object'".$ui->dn."' has been saved"); $sambaAccount->acl= "#none#"; + $editacl= get_module_permission($acl, "samba", $ui->dn); del_lock ($ui->dn); sess_del ('edit'); -- 2.30.2