mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
* chore: create type for unique role names Using `string` was confusing when something should be combined with org context, and when not to. Naming this new name, "RoleIdentifier"
14 lines
408 B
Go
14 lines
408 B
Go
package codersdk
|
|
|
|
// Ideally this roles would be generated from the rbac/roles.go package.
|
|
const (
|
|
RoleOwner string = "owner"
|
|
RoleMember string = "member"
|
|
RoleTemplateAdmin string = "template-admin"
|
|
RoleUserAdmin string = "user-admin"
|
|
RoleAuditor string = "auditor"
|
|
|
|
RoleOrganizationAdmin string = "organization-admin"
|
|
RoleOrganizationMember string = "organization-member"
|
|
)
|