mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
ACL: Fix compilation by adding prototype and c->cmd fix.
This commit is contained in:
parent
2da2e452ab
commit
a0a4fb85ff
@ -2690,7 +2690,7 @@ int processCommand(client *c) {
|
||||
/* Check if the user can run this command according to the current
|
||||
* ACLs. */
|
||||
if (ACLCheckCommandPerm(c) == C_ERR) {
|
||||
addReplyErrorFormat(c,"-NOPERM this user has no permissions to run the %s command", cmd->name);
|
||||
addReplyErrorFormat(c,"-NOPERM this user has no permissions to run the %s command", c->cmd->name);
|
||||
}
|
||||
|
||||
/* Only allow a subset of commands in the context of Pub/Sub if the
|
||||
|
@ -1693,6 +1693,7 @@ void ACLInit(void);
|
||||
int ACLCheckUserCredentials(robj *username, robj *password);
|
||||
unsigned long ACLGetCommandID(const char *cmdname);
|
||||
user *ACLGetUserByName(const char *name, size_t namelen);
|
||||
int ACLCheckCommandPerm(client *c);
|
||||
|
||||
/* Sorted sets data type */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user