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

Function RoleOwner

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

The functions below ONLY need to exist for roles that are "defaulted" in some way. Any other roles (like auditor), can be listed and let the user select/assigned. Once we have a database implementation, the "default" roles can be defined on the site and orgs, and these functions can be removed.

()

Source from the content-addressed store, hash-verified

135// site and orgs, and these functions can be removed.
136
137func RoleOwner() RoleIdentifier { return RoleIdentifier{Name: owner} }
138func CustomSiteRole() RoleIdentifier { return RoleIdentifier{Name: customSiteRole} }
139func CustomOrganizationRole(orgID uuid.UUID) RoleIdentifier {
140 return RoleIdentifier{Name: customOrganizationRole, OrganizationID: orgID}

Callers 15

TestWatchChatGitAuthzFunction · 0.92
postFirstUserMethod · 0.92
putUserStatusMethod · 0.92
putUserPasswordMethod · 0.92
TestWorkspacesSortOrderFunction · 0.92
TestWorkspaceFilterFunction · 0.92
TestWorkspaceBuildsFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestWatchChatGitAuthzFunction · 0.74
TestWorkspacesSortOrderFunction · 0.74
TestWorkspaceFilterFunction · 0.74
TestWorkspaceBuildsFunction · 0.74
TestAuditLogsFunction · 0.74
TestUpdateUserPasswordFunction · 0.74