MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_SetModuleUserACL

Function RM_SetModuleUserACL

app/redis-6.2.6/src/module.c:6518–6520  ·  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

6516 * Returns REDISMODULE_OK on success and REDISMODULE_ERR on failure
6517 * and will set an errno describing why the operation failed. */
6518int RM_SetModuleUserACL(RedisModuleUser *user, const char* acl) {
6519 return ACLSetUser(user->user, acl, -1);
6520}
6521
6522/* Authenticate the client associated with the context with
6523 * 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