Skip to content

Commit 88c0edc

Browse files
hugodutkaEmyrk
andauthored
chore(coderd/database/dbauthz): migrate the Notifications and Prebuilds tests to use mocked DB (coder#19302)
Related to coder/internal#869 --------- Co-authored-by: Steven Masley <stevenmasley@gmail.com>
1 parent a2945b0 commit 88c0edc

File tree

2 files changed

+190
-417
lines changed

2 files changed

+190
-417
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4584,6 +4584,7 @@ func (q *querier) UpdatePresetPrebuildStatus(ctx context.Context, arg database.U
45844584
return err
45854585
}
45864586

4587+
// TODO: This does not check the acl list on the template. Should it?
45874588
object := rbac.ResourceTemplate.
45884589
WithID(preset.TemplateID.UUID).
45894590
InOrg(preset.OrganizationID)

0 commit comments

Comments
 (0)