mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	Because full_name and is_admin changes go through many similar, generic codepaths, it is almost more work at this point to keep is_admin out of page_params as it is to just put it in. So I put it in. This should pave the path for showing admins in the GUI. This commit actually starting by my adding a test that calling apply_events() with the notification you get when calling do_change_is_admin() updates state['realm_users'] to be similar to what you would get out of fetch_initial_state_data(). We didn't have test coverage there before. Making that test pass forced my hand to either add is_admin to page_params or to special-case apply_events() not to update page_params with is_admin. I chose the former approach. (imported from commit 1e49d59c66540014284529c29d5007224be6a0c6)
		
			
				
	
	
	
		
			117 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			117 KiB