ACL: specify better the command denied error.

This commit is contained in:
antirez 2019-01-21 17:09:58 +01:00
parent 53321c3c2c
commit 2263d6e173

View File

@ -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 "