Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1c95ffe

Browse files
committed
coderd/wsbuilder: use dbauthz.AsSystemReadProvisionerDaemons instead of dbauthz.AsSystemRestricted
1 parent38788d5 commit1c95ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coderd/wsbuilder/wsbuilder.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func (b *Builder) buildTx(authFunc func(action policy.Action, object rbac.Object
338338
// to read all provisioner daemons. We need to retrieve the eligible
339339
// provisioner daemons for this job to show in the UI if there is no
340340
// matching provisioner daemon.
341-
provisionerDaemons,err:=b.store.GetProvisionerDaemonsByOrganization(dbauthz.AsSystemRestricted(b.ctx), database.GetProvisionerDaemonsByOrganizationParams{
341+
provisionerDaemons,err:=b.store.GetProvisionerDaemonsByOrganization(dbauthz.AsSystemReadProvisionerDaemons(b.ctx), database.GetProvisionerDaemonsByOrganizationParams{
342342
OrganizationID:template.OrganizationID,
343343
WantTags:provisionerJob.Tags,
344344
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp