mirror of https://github.com/zulip/zulip.git
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:
parent
0115fa9c60
commit
ae9ef830f0
|
@ -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({
|
||||||
|
|
Loading…
Reference in New Issue