mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
'can_access_stream_email' function determines who can generate email to send message in a channel. Earlier, the function was not considering channel post policy. So, a user which doesn't have permission to post in a channel as per channel post policy could generate channel email. This commit makes sure to not show the "Generate email address" button in such cases. We show the button only if the current user or any of the bots they control has the permission to post in the channel. Fixes part of #31566.
58 KiB
58 KiB