mirror of
https://github.com/fluencelabs/redis
synced 2025-04-01 15:21:03 +00:00
ACL: check patterns instead of passwords in ACLCheckCommandPerm
This commit is contained in:
parent
e545b30f97
commit
8fc0079366
@ -555,7 +555,7 @@ int ACLCheckCommandPerm(client *c) {
|
|||||||
for (int j = 0; j < numkeys; j++) {
|
for (int j = 0; j < numkeys; j++) {
|
||||||
listIter li;
|
listIter li;
|
||||||
listNode *ln;
|
listNode *ln;
|
||||||
listRewind(u->passwords,&li);
|
listRewind(u->patterns,&li);
|
||||||
|
|
||||||
/* Test this key against every pattern. */
|
/* Test this key against every pattern. */
|
||||||
int match = 0;
|
int match = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user