From: Timo Sirainen Date: Mon, 2 Feb 2009 03:24:56 +0000 (-0500) Subject: acl: We stopped calling hook_mail_storage_created for internal namespaces. X-Git-Tag: 1.2.beta1~46 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3dbd543140bf38ad39ce6eab9a282998a3a0960;p=thirdparty%2Fdovecot%2Fcore.git acl: We stopped calling hook_mail_storage_created for internal namespaces. --HG-- branch : HEAD --- diff --git a/src/plugins/acl/acl-storage.c b/src/plugins/acl/acl-storage.c index 8c27dc727f..98fb8a5a96 100644 --- a/src/plugins/acl/acl-storage.c +++ b/src/plugins/acl/acl-storage.c @@ -174,19 +174,18 @@ void acl_mail_storage_created(struct mail_storage *storage) if ((storage->ns->flags & NAMESPACE_FLAG_INTERNAL) != 0) { /* no ACL checks for internal namespaces (deliver) */ - return; - } - - astorage = p_new(storage->pool, struct acl_mail_storage, 1); - astorage->module_ctx.super = storage->v; - storage->v.destroy = acl_storage_destroy; - storage->v.mailbox_open = acl_mailbox_open; - storage->v.mailbox_create = acl_mailbox_create; + } else { + astorage = p_new(storage->pool, struct acl_mail_storage, 1); + astorage->module_ctx.super = storage->v; + storage->v.destroy = acl_storage_destroy; + storage->v.mailbox_open = acl_mailbox_open; + storage->v.mailbox_create = acl_mailbox_create; - backend = acl_mailbox_list_get_backend(mail_storage_get_list(storage)); - acl_storage_rights_ctx_init(&astorage->rights, backend); + backend = acl_mailbox_list_get_backend(mail_storage_get_list(storage)); + acl_storage_rights_ctx_init(&astorage->rights, backend); - MODULE_CONTEXT_SET(storage, acl_storage_module, astorage); + MODULE_CONTEXT_SET(storage, acl_storage_module, astorage); + } if (acl_next_hook_mail_storage_created != NULL) acl_next_hook_mail_storage_created(storage);