mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
This commit updates how we check permission for updating properties of an unsubscribed private channel. There is no need of checking all can_administer_channel_group values for unsubscribed private channel, when we check them for a subscribed private channel. It is sufficient to check one case where an unsubscribed user can update private channel if they belong to can_administer_channel_group. This also helps in avoiding repeated calls to subscribed_to_stream which made a DB query that could make the test slow.