From ae9ef830f074f526bdfab3a9856628f05aa6c61a Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Thu, 8 Feb 2024 12:20:10 +0530 Subject: [PATCH] admin: Remove unnecessary development_environment check. The "Who can access all users" setting is not disabled for organizations not on "Plus" plans in production because of the "page_params.development_environment" check. We do not need that check anymore as the feature is now enabled in production. --- web/src/admin.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/web/src/admin.js b/web/src/admin.js index 1f79648dc8..9689f18073 100644 --- a/web/src/admin.js +++ b/web/src/admin.js @@ -255,11 +255,7 @@ export function build_page() { const is_plan_plus = page_params.realm_plan_type === 10; const is_plan_self_hosted = page_params.realm_plan_type === 1; - if ( - page_params.development_environment && - page_params.is_admin && - !(is_plan_plus || is_plan_self_hosted) - ) { + if (page_params.is_admin && !(is_plan_plus || is_plan_self_hosted)) { $("#realm_can_access_all_users_group_widget").prop("disabled", true); const opts = { content: $t({