]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-quota: Admin user can (again) use GETQUOTA for other users' quota roots.
authorTimo Sirainen <tss@iki.fi>
Sun, 8 Dec 2013 19:24:10 +0000 (21:24 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 8 Dec 2013 19:24:10 +0000 (21:24 +0200)
src/plugins/imap-quota/imap-quota-plugin.c

index e15e249e3573098396e6363d04cddf3ee73abd06..028a3fac2890553644f3f14583453f3408e38a71 100644 (file)
@@ -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;