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

Commitbcfd754

Browse files
committed
use more reduced role
1 parentb909207 commitbcfd754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coderd/parameters.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (api *API) handleDynamicParameters(listen bool, rw http.ResponseWriter, r *
119119

120120
// nolint:gocritic // We need to fetch the templates files for the Terraform
121121
// evaluator, and the user likely does not have permission.
122-
fileCtx:=dbauthz.AsProvisionerd(ctx)
122+
fileCtx:=dbauthz.AsFileReader(ctx)
123123
fileID,err:=api.Database.GetFileIDByTemplateVersionID(fileCtx,templateVersion.ID)
124124
iferr!=nil {
125125
httpapi.Write(ctx,rw,http.StatusInternalServerError, codersdk.Response{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp