MCPcopy Index your code
hub / github.com/coder/coder / Authorize

Method Authorize

enterprise/coderd/coderd.go:1376–1378  ·  view source on GitHub ↗
(r *http.Request, action policy.Action, object rbac.Objecter)

Source from the content-addressed store, hash-verified

1374}
1375
1376func (api *API) Authorize(r *http.Request, action policy.Action, object rbac.Objecter) bool {
1377 return api.AGPL.HTTPAuth.Authorize(r, action, object)
1378}
1379
1380// nolint:revive // featureEnabled is a legit control flag.
1381func (api *API) setupPrebuilds(featureEnabled bool) (agplprebuilds.ReconciliationOrchestrator, agplprebuilds.Claimer) {

Calls 1

AuthorizeMethod · 0.65

Tested by

no test coverage detected