summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9964782)
raw | patch | inline | side by side (parent: 9964782)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Jul 2008 11:39:39 +0000 (11:39 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 14 Jul 2008 11:39:39 +0000 (11:39 +0000) |
-Display edit button if we have read access.
-Fixed ACL handling
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11623 594d385d-05f5-0310-b6e9-bd551577e9d8
-Fixed ACL handling
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11623 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc | patch | blob | history | |
gosa-plugins/scalix/personal/scalix/main.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 6472d2611c3c031a95024daef1a09037ff6ce0e1..6e2e3f5fb118f88ec88f562dd150f677a5040a9a 100644 (file)
"scalixLimitInboundMail", "scalixLimitNotifyUser", "scalixHideUserEntry", "scalixMailboxClass") as $val){
$smarty->assign("$val", $this->$val);
- $smarty->assign("$val"."ACL", $this->getacl($val));
+ $smarty->assign("$val"."ACL", $this->getacl($val, !session::is_set('edit')));
}
/* Fill checkboxes */
plugin::save_object();
/* Check if given value is not empty */
- if ($_POST['email_address'] != ""){
+ if (isset($_POST['email_address']) && !empty($_POST['email_address'])){
$valid= FALSE;
/* Valid mail address */
diff --git a/gosa-plugins/scalix/personal/scalix/main.inc b/gosa-plugins/scalix/personal/scalix/main.inc
index a18086ab2647ca0ac2128a24c05e77de3446cfe4..4a3ef1d561ada290c26bbf56de3f307770f4df26 100644 (file)
$info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/unlocked.png').
"\"> ".$ui->dn." ";
- if(preg_match("/w/",$ui->get_permissions($ui->dn,"users/scalix"))){
+ if(preg_match("/r/",$ui->get_permissions($ui->dn,"users/scalixAccount"))){
$info.= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/on.png')."\"> ".
_("Click the 'Edit' button below to change informations in this dialog");