Commit e4846b02 authored by antirez's avatar antirez
Browse files

ACL: implement ACLGetUserByName().

parent 29c88a9c
......@@ -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;
}
/* =============================================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment