Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6044:3ca063521d9a HEAD
If user didn't have "lookup" right to mailbox, "insert" right didn't work.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 17 Jul 2007 23:58:04 +0300 |
parents | d9abe04fc9ae |
children | 840fb333defd |
files | src/plugins/acl/acl-mailbox-list.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/plugins/acl/acl-mailbox-list.c Tue Jul 17 21:48:42 2007 +0300 +++ b/src/plugins/acl/acl-mailbox-list.c Tue Jul 17 23:58:04 2007 +0300 @@ -240,6 +240,15 @@ NULL); if (ret < 0) return -1; + if (ret == 0) { + /* If we have INSERT right for the mailbox, we'll need to + reveal its existence so that APPEND and COPY works. */ + ret = acl_mailbox_list_have_right(alist, name, + ACL_STORAGE_RIGHT_INSERT, + NULL); + if (ret < 0) + return -1; + } if (alist->module_ctx.super.get_mailbox_name_status(list, name, status) < 0)