summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8d6d385)
raw | patch | inline | side by side (parent: 8d6d385)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Jul 2008 11:50:08 +0000 (11:50 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Jul 2008 11:50:08 +0000 (11:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11624 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc | patch | blob | history |
diff --git a/gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc b/gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc
index 6e2e3f5fb118f88ec88f562dd150f677a5040a9a..665326620eefa5579a92c30052e882d241fc96c5 100644 (file)
$this->is_account= !$this->is_account;
}
+ $ReadOnly = !session::is_set("edit") && !isset($this->parent);
+
/* Show main page */
$mailboxClasses = array("", "LIMITED", "FULL");
$serverLanguages= array("", "GERMAN", "ENGLISH");
"scalixLimitInboundMail", "scalixLimitNotifyUser", "scalixHideUserEntry", "scalixMailboxClass") as $val){
$smarty->assign("$val", $this->$val);
- $smarty->assign("$val"."ACL", $this->getacl($val, !session::is_set('edit')));
+ $smarty->assign("$val"."ACL", $this->getacl($val, $ReadOnly));
}
/* Fill checkboxes */
/* Check write access */
if(!$this->acl_is_writeable("scalixEmailAddress")){
- msg_dialog::display(_("Error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
}else{
/* Mail address already in use ? */
}
/* Delete email addresses */
- if (isset($_POST['delete_email']) && isset ($_POST['emails_list'])){
+ if (isset($_POST['delete_email']) && isset ($_POST['emails_list']) && $this->acl_is_writeable("scalixEmailAddress")){
if(!$this->acl_is_writeable("scalixEmailAddress")){
- msg_dialog::display(_("Error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
+ msg_dialog::display(_("Error"), _("You have no permission to modify these addresses."), ERROR_DIALOG);
}else{
if (count($_POST['emails_list'])){
$this->delEmail ($_POST['emails_list']);