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

Method templateRBACEnabledMW

enterprise/coderd/templates.go:348–350  ·  view source on GitHub ↗

TODO move to api.RequireFeatureMW when we are OK with changing the behavior.

(next http.Handler)

Source from the content-addressed store, hash-verified

346
347// TODO move to api.RequireFeatureMW when we are OK with changing the behavior.
348func (api *API) templateRBACEnabledMW(next http.Handler) http.Handler {
349 return api.RequireFeatureMW(codersdk.FeatureTemplateRBAC)(next)
350}
351
352func (api *API) RequireFeatureMW(feat codersdk.FeatureName) func(http.Handler) http.Handler {
353 return func(next http.Handler) http.Handler {

Callers

nothing calls this directly

Calls 1

RequireFeatureMWMethod · 0.95

Tested by

no test coverage detected