mirror of https://github.com/zulip/zulip.git
c6e553427a
There was a bug where invite users link is shown in the Invitations section of settings overlay, irrespective if the user is allowed to invite or not based on the realm settings. So here we just use the 'can_invite_others_to_realm' field of page_params, that was added in previous commit itself to hide the link accordingly. Also added the code in server_events_dispatch.js for this field. Though it doesn't do live update when the overlay is opened similar to other policies like create_stream_policy, but it ensures that the visibility of link is correct if the overlay is opened after the settings has changed. We should probably do the complete live update in future of the elements related to such realm settings. |
||
---|---|---|
.. | ||
node_tests | ||
puppeteer_lib | ||
puppeteer_tests | ||
zjsunit |