We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 750cfc3 commit a9a05d4Copy full SHA for a9a05d4
coderd/workspacebuilds.go
@@ -545,6 +545,13 @@ func (api *API) postWorkspaceBuilds(rw http.ResponseWriter, r *http.Request) {
545
}
546
547
548
+ if createBuild.LogLevel != "" && !api.Authorize(r, rbac.ActionUpdate, template) {
549
+ httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
550
+ Message: "Workspace builds with a custom log level are restricted to template authors only.",
551
+ })
552
+ return
553
+ }
554
+
555
var workspaceBuild database.WorkspaceBuild
556
var provisionerJob database.ProvisionerJob
557
// This must happen in a transaction to ensure history can be inserted, and
0 commit comments