Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
e3667cb9
Unverified
Commit
e3667cb9
authored
Feb 24, 2021
by
Huang Zw
Committed by
GitHub
Feb 23, 2021
Browse files
In luaRedisGenericCommand check channel return is ACL_DENIED_CHANNEL (#8535)
not ACL_DENIED_AUTH
parent
f745c018
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
e3667cb9
...
@@ -619,7 +619,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
...
@@ -619,7 +619,7 @@ int luaRedisGenericCommand(lua_State *lua, int raise_error) {
"at least one of the keys mentioned in the "
"at least one of the keys mentioned in the "
"command arguments"
);
"command arguments"
);
break
;
break
;
case
ACL_DENIED_
AUTH
:
case
ACL_DENIED_
CHANNEL
:
luaPushError
(
lua
,
"The user executing the script can't publish "
luaPushError
(
lua
,
"The user executing the script can't publish "
"to the channel mentioned in the command"
);
"to the channel mentioned in the command"
);
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment