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 f745c0181a
commit e3667cb908
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;