Code

Added default ACLs to base mailMethod
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Dec 2008 08:12:23 +0000 (08:12 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Dec 2008 08:12:23 +0000 (08:12 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13255 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/mail/personal/mail/class_mail-methods.inc

index 0908fb1cb23031c58ca571bae35c2bc551bf679d..ad049adba3981b2f58066f1685b77a930f11622a 100644 (file)
@@ -64,6 +64,8 @@ class mailMethod{
   protected $parent             = NULL;   
   protected $MailServer         = "";
 
+  protected $default_acls = array("__anyone__" => "p", "__member__" => "lrswp");
+
   protected $acl_map = array(
       "lrsw"     => "read",
       "lrswp"    => "post",
@@ -737,6 +739,18 @@ class mailMethod{
       return("<img src='progress.php?x=100&amp;y=17&amp;p=$usage'>");
     }
   }
+
+  /*! \brief  Returns the default sharedFolder ACLs for this method.
+      @return Array Returns an array containg acls for __member__ and __anyone__
+   */ 
+  public function getDefaultACLs()
+  {
+    $tmp = $this->default_acls;
+    if(!isset($tmp['__member__'])) $tmp['__member__'] = " ";
+    if(!isset($tmp['__anyone__'])) $tmp['__anyone__'] = " ";
+    return($tmp);
+  }
 }