mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: support prebuilt workspaces in non-default organizations (#18010)
closes https://github.com/coder/internal/issues/527
This commit is contained in:
@@ -33,6 +33,8 @@ const (
|
||||
orgUserAdmin string = "organization-user-admin"
|
||||
orgTemplateAdmin string = "organization-template-admin"
|
||||
orgWorkspaceCreationBan string = "organization-workspace-creation-ban"
|
||||
|
||||
prebuildsOrchestrator string = "prebuilds-orchestrator"
|
||||
)
|
||||
|
||||
func init() {
|
||||
@@ -599,6 +601,9 @@ var assignRoles = map[string]map[string]bool{
|
||||
orgUserAdmin: {
|
||||
orgMember: true,
|
||||
},
|
||||
prebuildsOrchestrator: {
|
||||
orgMember: true,
|
||||
},
|
||||
}
|
||||
|
||||
// ExpandableRoles is any type that can be expanded into a []Role. This is implemented
|
||||
|
||||
Reference in New Issue
Block a user