org settings: Create backend api for allow_community_topic_editing.

Adds the code for updating the allow_community_topic_editing
setting.
This commit is contained in:
Sarah
2017-12-02 15:50:48 -08:00
committed by Tim Abbott
parent ecd75ccba6
commit f5c2fb8438
6 changed files with 35 additions and 9 deletions

View File

@@ -160,6 +160,7 @@ def fetch_initial_state_data(user_profile: UserProfile,
realm = user_profile.realm
state['realm_authentication_methods'] = realm.authentication_methods_dict()
state['realm_allow_message_editing'] = realm.allow_message_editing
state['realm_allow_community_topic_editing'] = realm.allow_community_topic_editing
state['realm_message_content_edit_limit_seconds'] = realm.message_content_edit_limit_seconds
state['realm_icon_url'] = realm_icon_url(realm)
state['realm_icon_source'] = realm.icon_source