mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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,"~*"))
|
||||
{
|
||||
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") ||
|
||||
!strcasecmp(op,"+@all"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user