changeset 8425:65d005f2c28b HEAD

acl: Use MAIL_STORAGE_FLAG_IGNORE_ACLS flag.
author Timo Sirainen <tss@iki.fi>
date Sun, 16 Nov 2008 14:40:56 +0200
parents e758515bbbbf
children 5c4af90c9155
files src/plugins/acl/acl-storage.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/acl/acl-storage.c	Sun Nov 16 14:33:11 2008 +0200
+++ b/src/plugins/acl/acl-storage.c	Sun Nov 16 14:40:56 2008 +0200
@@ -99,7 +99,9 @@
 	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);