Skip to content

Commit 0561f8d

Browse files
committed
update dbauthz
1 parent 7dc4ff2 commit 0561f8d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,9 @@ func (q *querier) InsertWorkspaceApp(ctx context.Context, arg database.InsertWor
20322032
}
20332033

20342034
func (q *querier) InsertWorkspaceAppStats(ctx context.Context, arg database.InsertWorkspaceAppStatsParams) error {
2035-
// TODO(mafredri): Add auth.
2035+
if err := q.authorizeContext(ctx, rbac.ActionCreate, rbac.ResourceSystem); err != nil {
2036+
return err
2037+
}
20362038
return q.db.InsertWorkspaceAppStats(ctx, arg)
20372039
}
20382040

0 commit comments

Comments
 (0)