From c6e8f897413ce2fce378430a440e90e6421a8db0 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 8 Dec 2013 21:24:10 +0200 Subject: [PATCH] imap-quota: Admin user can (again) use GETQUOTA for other users' quota roots. --- src/plugins/imap-quota/imap-quota-plugin.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/imap-quota/imap-quota-plugin.c b/src/plugins/imap-quota/imap-quota-plugin.c index e15e249e35..028a3fac28 100644 --- a/src/plugins/imap-quota/imap-quota-plugin.c +++ b/src/plugins/imap-quota/imap-quota-plugin.c @@ -138,7 +138,6 @@ static bool cmd_getquota(struct client_command_context *cmd) return FALSE; root = quota_root_lookup(cmd->client->user, root_name); -#if 0 if (root == NULL && cmd->client->user->admin) { /* we're an admin. see if there's a quota root for another user. */ @@ -150,7 +149,6 @@ static bool cmd_getquota(struct client_command_context *cmd) quota_root_lookup(owner, p + 1); } } -#endif if (root == NULL) { client_send_tagline(cmd, "NO Quota root doesn't exist."); return TRUE; -- 2.47.3