Code

Updated scalix.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 14 Jul 2008 11:39:39 +0000 (11:39 +0000)
committerhickert <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

gosa-plugins/scalix/personal/scalix/class_scalixAccount.inc
gosa-plugins/scalix/personal/scalix/main.inc

index 6472d2611c3c031a95024daef1a09037ff6ce0e1..6e2e3f5fb118f88ec88f562dd150f677a5040a9a 100644 (file)
@@ -155,7 +155,7 @@ class scalixAccount extends plugin
       "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 */
@@ -241,7 +241,7 @@ class scalixAccount extends plugin
       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 */
index a18086ab2647ca0ac2128a24c05e77de3446cfe4..4a3ef1d561ada290c26bbf56de3f307770f4df26 100644 (file)
@@ -107,7 +107,7 @@ if (!$remove_lock){
       $info= "<img alt=\"\" align=\"middle\" src=\"".get_template_path('images/lists/unlocked.png').
              "\"> ".$ui->dn."&nbsp;";
 
-      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");