ACL: change requirepass stop condition to use ACLs.

This commit is contained in:
antirez 2019-01-17 18:22:22 +01:00
parent 0526d1538b
commit 636424c0ce

View File

@ -2587,7 +2587,7 @@ int processCommand(client *c) {
} }
/* Check if the user is authenticated */ /* Check if the user is authenticated */
if (server.requirepass && if (!(DefaultUser->flags & USER_FLAG_NOPASS) &&
!c->authenticated && !c->authenticated &&
(c->cmd->proc != authCommand || c->cmd->proc == helloCommand)) (c->cmd->proc != authCommand || c->cmd->proc == helloCommand))
{ {