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

Method RoleIdentifier

coderd/database/modelmethods.go:829–834  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

827}
828
829func (r CustomRole) RoleIdentifier() rbac.RoleIdentifier {
830 return rbac.RoleIdentifier{
831 Name: r.Name,
832 OrganizationID: r.OrganizationID.UUID,
833 }
834}
835
836func (r GetAuthorizationUserRolesRow) RoleNames() ([]rbac.RoleIdentifier, error) {
837 names := make([]rbac.RoleIdentifier, 0, len(r.Roles))

Callers 4

assignableRolesFunction · 0.80
ExpandFunction · 0.80
ConvertDBRoleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected