mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
ACL: specify better the command denied error.
This commit is contained in:
parent
53321c3c2c
commit
2263d6e173
@ -2603,7 +2603,7 @@ int processCommand(client *c) {
|
|||||||
if (acl_retval == ACL_DENIED_CMD)
|
if (acl_retval == ACL_DENIED_CMD)
|
||||||
addReplyErrorFormat(c,
|
addReplyErrorFormat(c,
|
||||||
"-NOPERM this user has no permissions to run "
|
"-NOPERM this user has no permissions to run "
|
||||||
"the '%s' command", c->cmd->name);
|
"the '%s' command or its subcommnad", c->cmd->name);
|
||||||
else
|
else
|
||||||
addReplyErrorFormat(c,
|
addReplyErrorFormat(c,
|
||||||
"-NOPERM this user has no permissions to access "
|
"-NOPERM this user has no permissions to access "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user