Skip to content

Commit 3bff48e

Browse files
committed
Cleanup
1 parent 9feb24a commit 3bff48e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

coderd/parameters.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,7 @@ func (api *api) parameters(rw http.ResponseWriter, r *http.Request) {
8484
if !ok {
8585
return
8686
}
87-
// Should we allow reading the params of the resource if they can read the
88-
// resource? Will this leak secrets?
87+
8988
if !api.Authorize(rw, r, rbac.ActionRead, obj) {
9089
return
9190
}

codersdk/organizations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func (c *Client) Organization(ctx context.Context, id uuid.UUID) (Organization,
9292
// ProvisionerDaemonsByOrganization returns provisioner daemons available for an organization.
9393
func (c *Client) ProvisionerDaemons(ctx context.Context) ([]ProvisionerDaemon, error) {
9494
res, err := c.Request(ctx, http.MethodGet,
95-
fmt.Sprintf("/api/v2/provisionerdaemons"),
95+
"/api/v2/provisionerdaemons",
9696
nil,
9797
)
9898
if err != nil {

0 commit comments

Comments
 (0)