From e3667cb908f70d3ffb04a3d5b095f91f9cc7ee97 Mon Sep 17 00:00:00 2001 From: Huang Zw Date: Wed, 24 Feb 2021 08:55:10 +0800 Subject: [PATCH] In luaRedisGenericCommand check channel return is ACL_DENIED_CHANNEL (#8535) not ACL_DENIED_AUTH --- src/scripting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting.c b/src/scripting.c index e23d49e8b..7bf9f1c04 100644 --- a/src/scripting.c +++ b/src/scripting.c @@ -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;