From: hickert Date: Thu, 11 Dec 2008 08:12:23 +0000 (+0000) Subject: Added default ACLs to base mailMethod X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=26684bbe2c38d8825fcb8bc467099eaa26c48f5d;p=gosa.git Added default ACLs to base mailMethod git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13255 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/mail/personal/mail/class_mail-methods.inc b/gosa-plugins/mail/personal/mail/class_mail-methods.inc index 0908fb1cb..ad049adba 100644 --- a/gosa-plugins/mail/personal/mail/class_mail-methods.inc +++ b/gosa-plugins/mail/personal/mail/class_mail-methods.inc @@ -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(""); } } + + + /*! \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); + } }