MCPcopy Create free account
hub / github.com/documentdb/documentdb / IsReservedInternalRoleName

Function IsReservedInternalRoleName

pg_documentdb/src/utils/role_utils.c:736–742  ·  view source on GitHub ↗

* Checks if the given name matches a reserved internal role name * (system login role, builtin role, or custom RBAC role). * Returns true if the name is reserved and should be rejected. */

Source from the content-addressed store, hash-verified

734 * Returns true if the name is reserved and should be rejected.
735 */
736bool
737IsReservedInternalRoleName(const char *name)
738{
739 return IS_SYSTEM_LOGIN_ROLE(name) ||
740 IS_BUILTIN_ROLE(name) ||
741 IS_CUSTOM_RBAC_ROLE(name);
742}
743
744
745/*

Callers 6

ParseCreateUserSpecFunction · 0.85
ParseDropUserSpecFunction · 0.85
ParseUpdateUserSpecFunction · 0.85
ParseCreateRoleSpecFunction · 0.85
ParseDropRoleSpecFunction · 0.85

Calls

no outgoing calls

Tested by 1