mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	admin: Added realm option to prevent users from changing their email.
A realm option to prevent users from changing their email address is added. Fixes #3777.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							d25bfb88d3
						
					
				
				
					commit
					cd2d798498
				
			@@ -583,6 +583,10 @@ function _setup_page() {
 | 
			
		||||
        });
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    if (page_params.realm_email_changes_disabled) {
 | 
			
		||||
        $('#change_email').hide();
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $('#change_email_button').on('click', function (e) {
 | 
			
		||||
        e.preventDefault();
 | 
			
		||||
        e.stopPropagation();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user