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
2263d6e1
Commit
2263d6e1
authored
Jan 21, 2019
by
antirez
Browse files
ACL: specify better the command denied error.
parent
53321c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.c
View file @
2263d6e1
...
@@ -2603,7 +2603,7 @@ int processCommand(client *c) {
...
@@ -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 "
...
...
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