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
b270322f
Commit
b270322f
authored
Jan 23, 2019
by
antirez
Browse files
ACL: ACLUserCanExecuteFutureCommands() function added.
parent
70e541b7
Changes
1
Show whitespace changes
Inline
Side-by-side
src/acl.c
View file @
b270322f
...
...
@@ -141,6 +141,13 @@ int ACLGetUserCommandBit(user *u, unsigned long id) {
return
u
->
allowed_commands
[
word
]
&
bit
;
}
/* When +@all or allcommands is given, we set a reserved bit as well that we
* can later test, to see if the user has the right to execute "future commands",
* that is, commands loaded later via modules. */
int
ACLUserCanExecuteFutureCommands
(
user
*
u
)
{
return
ACLGetUserCommandBit
(
u
,
USER_COMMAND_BITS_COUNT
-
1
);
}
/* Set the specified command bit for the specified user to 'value' (0 or 1).
* If the bit overflows the user internal represetation, no operation
* is performed. */
...
...
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