Skip to content

refactor: consolidate template and workspace acl validation #19192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Aug 7, 2025
Prev Previous commit
nice lil comments
  • Loading branch information
aslilac committed Aug 6, 2025
commit 48dd824df3436ff905ce9272719ffb65852c2100
1 change: 1 addition & 0 deletions coderd/workspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -2479,6 +2479,7 @@ var (
workspaceACLUpdateGroupsFieldName = "group_roles"
)

// WorkspaceACLUpdateValidator implements acl.UpdateValidator[codersdk.WorkspaceRole]
var _ acl.UpdateValidator[codersdk.WorkspaceRole] = WorkspaceACLUpdateValidator{}

func (w WorkspaceACLUpdateValidator) Users() (map[string]codersdk.WorkspaceRole, string) {
Expand Down
1 change: 1 addition & 0 deletions enterprise/coderd/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ var (
templateACLUpdateGroupsFieldName = "group_perms"
)

// TemplateACLUpdateValidator implements acl.UpdateValidator[codersdk.TemplateRole]
var _ acl.UpdateValidator[codersdk.TemplateRole] = TemplateACLUpdateValidator{}

func (w TemplateACLUpdateValidator) Users() (map[string]codersdk.TemplateRole, string) {
Expand Down
Loading