mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
This commit updates the API to check the permission to subscribe other users while inviting. The API will error if the user passes the "stream_ids" parameter (even when it contains only default streams) and the calling user does not having permission to subscribe others to streams. For users who do not have permission to subscribe others, the invitee will be subscribed to default streams at the time of accepting the invite. There is no change for multiuse invites, since only admins are allowed to send them, and admins always have the permission to subscribe others to streams.