Skip to content

Commit 00526ef

Browse files
committed
oops
1 parent 89f091c commit 00526ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/database/dbauthz/dbauthz.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,8 @@ func (q *querier) GetFileIDByTemplateVersionID(ctx context.Context, templateVers
17481748
}
17491749
// This is a kind of weird check, because users will almost never have this
17501750
// permission. Since this query is not currently used to provide data in a
1751-
// user facing way, it is expected that this query is run as some system user.
1751+
// user facing way, it's expected that this query is run as some system
1752+
// subject in order to be authorized.
17521753
err = q.authorizeContext(ctx, policy.ActionRead, rbac.ResourceFile.WithID(fileID))
17531754
if err != nil {
17541755
return uuid.Nil, err

0 commit comments

Comments
 (0)