mirror of
				https://github.com/zulip/zulip.git
				synced 2025-10-31 12:03:46 +00:00 
			
		
		
		
	settings: Use can_add_subscribers_group instead of realm policy.
We are using `can_add_subscribers_group` instead of `invite_to_stream_policy` to check whether a user can subscribe other users. We've removed `invite_to_stream_policy` from the frontend wherever applicable.
This commit is contained in:
		
				
					committed by
					
						 Tim Abbott
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							34ade0d9a2
						
					
				
				
					commit
					3bf87228a2
				
			| @@ -685,11 +685,8 @@ test_ui("warn_if_mentioning_unsubscribed_user", ({override, mock_template}) => { | ||||
|     const $textarea = $("<textarea>").attr("id", "compose-textarea"); | ||||
|     stub_message_row($textarea); | ||||
|     compose_state.set_stream_id(""); | ||||
|     override( | ||||
|         realm, | ||||
|         "realm_invite_to_stream_policy", | ||||
|         settings_config.common_policy_values.by_members.code, | ||||
|     ); | ||||
|  | ||||
|     override(realm, "realm_can_add_subscribers_group", everyone.id); | ||||
|  | ||||
|     let mentioned_details = { | ||||
|         user: { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user