]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
acl: Use MAIL_STORAGE_FLAG_IGNORE_ACLS flag.
authorTimo Sirainen <tss@iki.fi>
Sun, 16 Nov 2008 12:40:56 +0000 (14:40 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 16 Nov 2008 12:40:56 +0000 (14:40 +0200)
--HG--
branch : HEAD

src/plugins/acl/acl-storage.c

index 375bbaf90fba807b5cb6740a461f8a53e8edcc59..bc8fe167c529d6f1b76130b986b43aa1f35dbe18 100644 (file)
@@ -99,7 +99,9 @@ acl_mailbox_open(struct mail_storage *storage, const char *name,
        int ret;
 
        /* mailbox can be opened either for reading or appending new messages */
-       if ((flags & MAILBOX_OPEN_SAVEONLY) != 0) {
+       if ((flags & MAIL_STORAGE_FLAG_IGNORE_ACLS) != 0) {
+               ret = 1;
+       } else if ((flags & MAILBOX_OPEN_SAVEONLY) != 0) {
                ret = acl_storage_have_right(storage, name,
                                             ACL_STORAGE_RIGHT_INSERT,
                                             &can_see);