Skip to content

Commit

Permalink
acl: Fix ACL_CONTEXT check
Browse files Browse the repository at this point in the history
Was incorrect in 3131b38
  • Loading branch information
cmouse authored and mrannanj committed Feb 20, 2018
1 parent 7536e28 commit 11133c3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/plugins/acl/acl-mailbox.c
Expand Up @@ -442,7 +442,7 @@ static int
acl_transaction_commit(struct mailbox_transaction_context *ctx,
struct mail_transaction_commit_changes *changes_r)
{
struct acl_mailbox *abox = ACL_CONTEXT(ctx->box);
struct acl_mailbox *abox = ACL_CONTEXT_REQUIRE(ctx->box);
void *at = ACL_CONTEXT(ctx);
int ret;

Expand All @@ -451,8 +451,6 @@ acl_transaction_commit(struct mailbox_transaction_context *ctx,
return -1;
}

i_assert(abox != NULL);

ret = abox->module_ctx.super.transaction_commit(ctx, changes_r);
if (abox->no_read_right) {
/* don't allow IMAP client to see what UIDs the messages got */
Expand Down

0 comments on commit 11133c3

Please sign in to comment.