home.py: move realm_presence_disabled to register_ret.

Part of #3853.
This commit is contained in:
fionabunny 2017-04-19 22:35:53 -07:00 committed by Tim Abbott
parent 6d2785c853
commit 79c989916d
2 changed files with 2 additions and 1 deletions

View File

@ -111,6 +111,7 @@ def fetch_initial_state_data(user_profile, event_types, queue_id,
state['max_icon_file_size'] = settings.MAX_ICON_FILE_SIZE
state['realm_bot_domain'] = user_profile.realm.get_bot_domain()
state['realm_uri'] = user_profile.realm.uri
state['realm_presence_disabled'] = user_profile.realm.presence_disabled
if want('realm_domains'):
state['realm_domains'] = get_realm_domains(user_profile.realm)

View File

@ -215,7 +215,6 @@ def home_real(request):
name_changes_disabled = name_changes_disabled(user_profile.realm),
mandatory_topics = user_profile.realm.mandatory_topics,
show_digest_email = user_profile.realm.show_digest_email,
realm_presence_disabled = user_profile.realm.presence_disabled,
is_zephyr_mirror_realm = user_profile.realm.is_zephyr_mirror_realm,
# user_profile data.
@ -311,6 +310,7 @@ def home_real(request):
'realm_name',
'realm_description',
'realm_name_changes_disabled',
'realm_presence_disabled',
'realm_restricted_to_domain',
'realm_uri',
'realm_waiting_period_threshold',