MCPcopy Index your code
hub / github.com/coder/coder / ReservedRoleName

Function ReservedRoleName

coderd/rbac/roles.go:251–254  ·  view source on GitHub ↗

ReservedRoleName exists because the database should only allow unique role names, but some roles are built in. So these names are reserved

(name string)

Source from the content-addressed store, hash-verified

249// ReservedRoleName exists because the database should only allow unique role
250// names, but some roles are built in. So these names are reserved
251func ReservedRoleName(name string) bool {
252 _, ok := builtInRoles[name]
253 return ok
254}
255
256// ReloadBuiltinRoles loads the static roles into the builtInRoles map.
257// This can be called again with a different config to change the behavior.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected