Example #1
0
 /**
  * Removes any <identifier,rights> pair for the
  * specified user from the ACL for the specified
  * mailbox (DELETEACL)
  *
  * @param string $mailbox Mailbox name
  * @param string $user    User name
  *
  * @return boolean True on success, False on failure
  *
  * @access public
  * @since 0.5-beta
  */
 function delete_acl($mailbox, $user)
 {
     if ($this->get_capability('ACL')) {
         return $this->conn->deleteACL($mailbox, $user);
     }
     return false;
 }
Example #2
0
 /**
  * Removes any <identifier,rights> pair for the
  * specified user from the ACL for the specified
  * folder (DELETEACL)
  *
  * @param string $folder  Folder name
  * @param string $user    User name
  *
  * @return boolean True on success, False on failure
  * @since 0.5-beta
  */
 public function delete_acl($folder, $user)
 {
     if (!$this->get_capability('ACL')) {
         return false;
     }
     if (!$this->check_connection()) {
         return false;
     }
     return $this->conn->deleteACL($folder, $user);
 }