Commit 9e5c3828 authored by antirez's avatar antirez
Browse files

ACL: setuser resetkeys implemented.

parent 2263d6e1
...@@ -244,7 +244,10 @@ int ACLSetUser(user *u, const char *op, ssize_t oplen) { ...@@ -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"))
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment