mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
ACL: implement ACLGetUserByName().
This commit is contained in:
parent
29c88a9ce5
commit
e4846b028d
@ -132,7 +132,9 @@ unsigned long ACLGetCommandID(const char *cmdname) {
|
|||||||
|
|
||||||
/* Return an username by its name, or NULL if the user does not exist. */
|
/* Return an username by its name, or NULL if the user does not exist. */
|
||||||
user *ACLGetUserByName(const char *name, size_t namelen) {
|
user *ACLGetUserByName(const char *name, size_t namelen) {
|
||||||
return NULL;
|
void *myuser = raxFind(Users,(unsigned char*)name,namelen);
|
||||||
|
if (myuser == raxNotFound) return NULL;
|
||||||
|
return myuser;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* =============================================================================
|
/* =============================================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user