mirror of https://mirror.osredm.com/root/redis.git
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. */
|
||||
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…
Reference in New Issue