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.
This commit is contained in:
Sahil Batra 2024-02-08 12:20:10 +05:30
parent 0115fa9c60
commit ae9ef830f0
1 changed files with 1 additions and 5 deletions

View File

@ -255,11 +255,7 @@ export function build_page() {
const is_plan_plus = page_params.realm_plan_type === 10; const is_plan_plus = page_params.realm_plan_type === 10;
const is_plan_self_hosted = page_params.realm_plan_type === 1; const is_plan_self_hosted = page_params.realm_plan_type === 1;
if ( if (page_params.is_admin && !(is_plan_plus || is_plan_self_hosted)) {
page_params.development_environment &&
page_params.is_admin &&
!(is_plan_plus || is_plan_self_hosted)
) {
$("#realm_can_access_all_users_group_widget").prop("disabled", true); $("#realm_can_access_all_users_group_widget").prop("disabled", true);
const opts = { const opts = {
content: $t({ content: $t({