From: hickert Date: Fri, 4 Aug 2006 05:27:44 +0000 (+0000) Subject: Made mail plugin w3c conform X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ee7cb728380d2e597ecec574a0f8cd316bc8e01d;p=gosa.git Made mail plugin w3c conform Removed acls from main.inc git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4382 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/mail/generic.tpl b/plugins/personal/mail/generic.tpl index ec5c56522..9ce629b3a 100644 --- a/plugins/personal/mail/generic.tpl +++ b/plugins/personal/mail/generic.tpl @@ -40,7 +40,7 @@ {render acl=$gosaMailQuotaACL} - MB {/render} @@ -114,11 +114,11 @@ {/render}
{render acl=$gosaMailDeliveryModeRACL} - {/render} {render acl=$gosaMailMaxSizeACL} - {t}MB{/t} {/render} diff --git a/plugins/personal/mail/main.inc b/plugins/personal/mail/main.inc index e7c0a7a36..e51ed01d7 100644 --- a/plugins/personal/mail/main.inc +++ b/plugins/personal/mail/main.inc @@ -30,6 +30,8 @@ if (!$remove_lock){ /* Create mail object on demand */ if (!isset($_SESSION['mailAccount']) || (isset($_GET['reset']) && $_GET['reset'] == 1)){ $_SESSION['mailAccount']= new mailAccount ($config, $ui->dn); + $_SESSION['mailAccount']->set_acl_base($ui->dn); + $_SESSION['mailAccount']->set_acl_category("users"); } $mailAccount= $_SESSION['mailAccount']; @@ -54,16 +56,6 @@ if (!$remove_lock){ $_SESSION['edit']= TRUE; } - /* Adjust acl's to mode */ - if (isset($_SESSION['edit'])){ - $acl= get_permissions ($ui->dn, $ui->subtreeACL); - $mailAccount->acl= get_module_permission($acl, "mail", $ui->dn); - } else { - $acl= get_permissions ($ui->dn, $ui->subtreeACL); - $editacl= get_module_permission($acl, "mail", $ui->dn); - $mailAccount->acl= "#none#"; - } - /* save changes to LDAP and disable edit mode */ if (isset($_POST['edit_finish'])){ @@ -74,7 +66,6 @@ if (!$remove_lock){ if (count ($message) == 0){ $mailAccount->save (); gosa_log ("User/mail object'".$ui->dn."' has been saved"); - $mailAccount->acl= "#none#"; del_lock ($ui->dn); sess_del ('edit'); @@ -109,11 +100,11 @@ if (!$remove_lock){ } else { $info= "\"\" ".$ui->dn." "; - if (isset($editacl) && $editacl != "#none#"){ + + $display.= "Add acl check for edit button.";; $info.= "\"\" "._("Click the 'Edit' button below to change informations in this dialog"); $display.= "\n"; - } $display.= "\n"; }