We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent38788d5 commit1c95ffeCopy full SHA for 1c95ffe
coderd/wsbuilder/wsbuilder.go
@@ -338,7 +338,7 @@ func (b *Builder) buildTx(authFunc func(action policy.Action, object rbac.Object
338
// to read all provisioner daemons. We need to retrieve the eligible
339
// provisioner daemons for this job to show in the UI if there is no
340
// matching provisioner daemon.
341
-provisionerDaemons,err:=b.store.GetProvisionerDaemonsByOrganization(dbauthz.AsSystemRestricted(b.ctx), database.GetProvisionerDaemonsByOrganizationParams{
+provisionerDaemons,err:=b.store.GetProvisionerDaemonsByOrganization(dbauthz.AsSystemReadProvisionerDaemons(b.ctx), database.GetProvisionerDaemonsByOrganizationParams{
342
OrganizationID:template.OrganizationID,
343
WantTags:provisionerJob.Tags,
344
})