mirror of
				https://github.com/discourse/discourse.git
				synced 2025-02-25 18:55:32 -06:00 
			
		
		
		
	FIX: Sites with SSO that required approval were not creating reviewables
This commit is contained in:
		@@ -84,6 +84,9 @@ class DiscourseSingleSignOn < SingleSignOn
 | 
			
		||||
    user.user_avatar.save! if user.user_avatar
 | 
			
		||||
    user.save!
 | 
			
		||||
 | 
			
		||||
    # The user might require approval
 | 
			
		||||
    user.create_reviewable
 | 
			
		||||
 | 
			
		||||
    if bio && (user.user_profile.bio_raw.blank? || SiteSetting.sso_overrides_bio)
 | 
			
		||||
      user.user_profile.bio_raw = bio
 | 
			
		||||
      user.user_profile.save!
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user