diff --git a/include/class-MailboxAPI.php b/include/class-MailboxAPI.php index 5c0ce47..fdc94c8 100644 --- a/include/class-MailboxAPI.php +++ b/include/class-MailboxAPI.php @@ -1,44 +1,54 @@ . /** * Mailbox API */ class MailboxAPI extends DomainAPI { public function __construct() { Query::__construct(); $this->from( Mailbox::T ); $this->defaultClass( 'Mailbox' ); } /** * Join mailboxes and domain (once) * * @return self */ public function joinMailboxDomain() { if( empty( $this->joinedMailboxDomain ) ) { $this->from( 'domain' ); $this->equals( 'domain.domain_ID', 'mailbox.domain_ID' ); $this->joinedMailboxDomain = true; } return $this; } + /** + * Check if I can edit this mailbox + * + * Actually it just checks if you can edit the whole domain. + * + * @return boolean + */ + public function whereMailboxIsEditable() { + return $this->whereDomainIsEditable(); + } }