summaryrefslogtreecommitdiff
path: root/src/acl.c
diff options
context:
space:
mode:
authorzhugezy <44550833+zhugezy@users.noreply.github.com>2022-03-08 19:35:37 +0800
committerGitHub <noreply@github.com>2022-03-08 13:35:37 +0200
commit4f19b4d0c1a40c7853557da31bc3c2c8dc101530 (patch)
treeb41ec804d8612b2e1bb9833a19f1632eda50b578 /src/acl.c
parent38052fd702e6925a3354e0927ff813fc16f67b08 (diff)
downloadredis-4f19b4d0c1a40c7853557da31bc3c2c8dc101530.tar.gz
remove a piece of redundant comment (#10392)
introduced in #10147 since we blocked the first-arg mechanism on subcommands
Diffstat (limited to 'src/acl.c')
-rw-r--r--src/acl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/acl.c b/src/acl.c
index 3e2ecb9bf..5bc063901 100644
--- a/src/acl.c
+++ b/src/acl.c
@@ -120,10 +120,7 @@ typedef struct {
* understand if the command can be executed. */
uint64_t allowed_commands[USER_COMMAND_BITS_COUNT/64];
/* allowed_firstargs is used by ACL rules to block access to a command unless a
- * specific argv[1] is given (or argv[2] in case it is applied on a sub-command).
- * For example, a user can use the rule "-select +select|0" to block all
- * SELECT commands, except "SELECT 0".
- * And for a sub-command: "+config -config|set +config|set|loglevel"
+ * specific argv[1] is given.
*
* For each command ID (corresponding to the command bit set in allowed_commands),
* This array points to an array of SDS strings, terminated by a NULL pointer,