mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-30 19:43:47 +00:00 
			
		
		
		
	groups: Allow setting anonymous group to settings while editing.
This commit adds support to set can_mention_group setting to anonymous group while editing groups.
This commit is contained in:
		| @@ -242,9 +242,7 @@ def update_or_create_user_group_for_setting( | ||||
|     direct_subgroups: List[int], | ||||
|     current_setting_value: Optional[UserGroup], | ||||
| ) -> UserGroup: | ||||
|     if current_setting_value is not None and not hasattr( | ||||
|         current_setting_value, "named_user_group" | ||||
|     ):  # nocoverage | ||||
|     if current_setting_value is not None and not hasattr(current_setting_value, "named_user_group"): | ||||
|         # We do not create a new group if the setting was already set | ||||
|         # to an anonymous group. The memberships of existing group | ||||
|         # itself are updated. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user