home.py: move is_zephyr_mirror_realm as realm_is_zephyr_mirror_realm.

Part of #3853.
This commit is contained in:
fionabunny
2017-04-19 23:03:44 -07:00
committed by Tim Abbott
parent 935ddf3b17
commit 70fe2eab60
9 changed files with 11 additions and 10 deletions

View File

@@ -583,7 +583,7 @@ function validate_private_message() {
if (compose_state.recipient() === "") {
compose_error(i18n.t("Please specify at least one recipient"), $("#private_message_recipient"));
return false;
} else if (page_params.is_zephyr_mirror_realm) {
} else if (page_params.realm_is_zephyr_mirror_realm) {
// For Zephyr mirroring realms, the frontend doesn't know which users exist
return true;
}
@@ -655,7 +655,7 @@ $(function () {
}
// Disable for Zephyr mirroring realms, since we never have subscriber lists there
if (page_params.is_zephyr_mirror_realm) {
if (page_params.realm_is_zephyr_mirror_realm) {
return;
}