mirror of
https://github.com/coder/coder.git
synced 2025-07-21 01:28:49 +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:
@ -9,7 +9,7 @@ import (
|
||||
)
|
||||
|
||||
func (api *API) shouldBlockNonBrowserConnections(rw http.ResponseWriter) bool {
|
||||
if api.entitlements.Enabled(codersdk.FeatureBrowserOnly) {
|
||||
if api.Entitlements.Enabled(codersdk.FeatureBrowserOnly) {
|
||||
httpapi.Write(context.Background(), rw, http.StatusConflict, codersdk.Response{
|
||||
Message: "Non-browser connections are disabled for your deployment.",
|
||||
})
|
||||
|
Reference in New Issue
Block a user