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