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

Method IsOrgRole

coderd/rbac/roles.go:68–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66}
67
68func (r RoleIdentifier) IsOrgRole() bool {
69 return r.OrganizationID != uuid.Nil
70}
71
72// RoleNameFromString takes a formatted string '<role_name>[:org_id]'.
73func RoleNameFromString(input string) (RoleIdentifier, error) {

Callers 6

assignableRolesFunction · 0.80
TestRoleSyncTableFunction · 0.80
createAnotherUserRetryFunction · 0.80
TestIsOrgRoleFunction · 0.80
SiteBuiltInRolesFunction · 0.80
canAssignRolesMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestRoleSyncTableFunction · 0.64
TestIsOrgRoleFunction · 0.64