mirror of
https://github.com/fluencelabs/redis
synced 2025-03-20 01:20:50 +00:00
ACL: setuser resetkeys implemented.
This commit is contained in:
parent
2263d6e173
commit
9e5c38282b
@ -244,7 +244,10 @@ int ACLSetUser(user *u, const char *op, ssize_t oplen) {
|
|||||||
!strcasecmp(op,"~*"))
|
!strcasecmp(op,"~*"))
|
||||||
{
|
{
|
||||||
u->flags |= USER_FLAG_ALLKEYS;
|
u->flags |= USER_FLAG_ALLKEYS;
|
||||||
if (u->patterns) listEmpty(u->patterns);
|
listEmpty(u->patterns);
|
||||||
|
} else if (!strcasecmp(op,"resetkeys")) {
|
||||||
|
u->flags &= ~USER_FLAG_ALLKEYS;
|
||||||
|
listEmpty(u->patterns);
|
||||||
} else if (!strcasecmp(op,"allcommands") ||
|
} else if (!strcasecmp(op,"allcommands") ||
|
||||||
!strcasecmp(op,"+@all"))
|
!strcasecmp(op,"+@all"))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user