mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: keep entitlements in the options only, simplify fields (#14434)
* chore: refactor entitlements to keep it in just the options Duplicating the reference did not feel valuable, just confusing
This commit is contained in:
@ -155,7 +155,7 @@ func (api *API) workspaceQuota(rw http.ResponseWriter, r *http.Request) {
|
||||
user = httpmw.UserParam(r)
|
||||
)
|
||||
|
||||
licensed := api.entitlements.Enabled(codersdk.FeatureTemplateRBAC)
|
||||
licensed := api.Entitlements.Enabled(codersdk.FeatureTemplateRBAC)
|
||||
|
||||
// There are no groups and thus no allowance if RBAC isn't licensed.
|
||||
var quotaAllowance int64 = -1
|
||||
|
Reference in New Issue
Block a user