MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_SetModuleUserACL

Function RM_SetModuleUserACL

src/module.cpp:6710–6712  ·  view source on GitHub ↗

Sets the permissions of a user created through the redis module * interface. The syntax is the same as ACL SETUSER, so refer to the * documentation in acl.c for more information. See RM_CreateModuleUser * for detailed usage. * * Returns REDISMODULE_OK on success and REDISMODULE_ERR on failure * and will set an errno describing why the operation failed. */

Source from the content-addressed store, hash-verified

6708 * Returns REDISMODULE_OK on success and REDISMODULE_ERR on failure
6709 * and will set an errno describing why the operation failed. */
6710int RM_SetModuleUserACL(RedisModuleUser *user, const char* acl) {
6711 return ACLSetUser(user->user, acl, -1);
6712}
6713
6714/* Authenticate the client associated with the context with
6715 * the provided user. Returns REDISMODULE_OK on success and

Callers

nothing calls this directly

Calls 1

ACLSetUserFunction · 0.85

Tested by

no test coverage detected