In luaRedisGenericCommand check channel return is ACL_DENIED_CHANNEL (#8535)

not ACL_DENIED_AUTH
This commit is contained in:
Huang Zw 2021-02-24 08:55:10 +08:00 committed by GitHub
parent e209b6c1c9
commit 9bf31f67f0

View File

@ -619,7 +619,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
"at least one of the keys mentioned in the "
"command arguments");
break;
case ACL_DENIED_AUTH:
case ACL_DENIED_CHANNEL:
luaPushError(lua, "The user executing the script can't publish "
"to the channel mentioned in the command");
break;