mirror of https://github.com/zulip/zulip.git
38a4105744
This commit adds 'user_can_invite_others_to_realm' function in settings_data.js which replaces all the instances of 'page_params.can_invite_others_to_realm'. This change makes it possible to remove the complex logic of updating 'page_params.can_invite_others_to_realm' on 'realm_update' event as we are using above added helper instead of using page_params object and thus we always use the updated value to check whether user can invite others or not. The 'user_has_permission' helper will be used by functions added for create_stream_policy and invite_to_stream_policy in further commits and will help in avoiding code duplication. |
||
---|---|---|
.. | ||
assets | ||
audio | ||
generated | ||
html | ||
images | ||
js | ||
shared | ||
styles | ||
templates | ||
third | ||
.gitignore |