Example #1
0
 /**
  * Returns information about what rights can be granted to the
  * user (identifier) in the ACL for the mailbox (LISTRIGHTS)
  *
  * @param string $mailbox Mailbox name
  * @param string $user    User name
  *
  * @return array List of user rights
  * @access public
  * @since 0.5-beta
  */
 function list_rights($mailbox, $user)
 {
     if ($this->get_capability('ACL')) {
         return $this->conn->listRights($mailbox, $user);
     }
     return NULL;
 }
Example #2
0
 /**
  * Returns information about what rights can be granted to the
  * user (identifier) in the ACL for the folder (LISTRIGHTS)
  *
  * @param string $folder  Folder name
  * @param string $user    User name
  *
  * @return array List of user rights
  * @since 0.5-beta
  */
 public function list_rights($folder, $user)
 {
     if (!$this->get_capability('ACL')) {
         return null;
     }
     if (!$this->check_connection()) {
         return null;
     }
     return $this->conn->listRights($folder, $user);
 }