mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 01:16:19 +00:00
This commits fixes the code which checks group mention permission to handle anonymous user groups correctly. Basically we were not checking whether the UserGroup is linked to a NamedUserGroup and directly accessing named_user_group which results in an error. We also update the error messages to include the group name which has permission to mention the groups since now there might be a comnbination of groups and users who has permission to mention the group. This commit also adds tests to check sending and editing messages when can_mention_group is set to a anonymous user group.
52 KiB
52 KiB