From: Timo Sirainen Date: Sun, 8 Dec 2013 19:24:10 +0000 (+0200) Subject: imap-quota: Admin user can (again) use GETQUOTA for other users' quota roots. X-Git-Tag: 2.2.10~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c6e8f897413ce2fce378430a440e90e6421a8db0;p=thirdparty%2Fdovecot%2Fcore.git imap-quota: Admin user can (again) use GETQUOTA for other users' quota roots. --- 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;