mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	Remove superfluous conditional
This wasn't needed to prevent updating the policy on-disk from my tests and can be removed as suggested by @Bond-009
This commit is contained in:
		
							parent
							
								
									c230d49d7c
								
							
						
					
					
						commit
						4b8f735cb8
					
				@ -311,13 +311,10 @@ namespace Emby.Server.Implementations.Library
 | 
			
		||||
                    user = Users
 | 
			
		||||
                        .FirstOrDefault(i => string.Equals(username, i.Name, StringComparison.OrdinalIgnoreCase));
 | 
			
		||||
 | 
			
		||||
                    if (authenticationProvider.GetType() != typeof(InvalidAuthProvider))
 | 
			
		||||
                    if (authenticationProvider is IHasNewUserPolicy hasNewUserPolicy)
 | 
			
		||||
                    {
 | 
			
		||||
                        if (authenticationProvider is IHasNewUserPolicy hasNewUserPolicy)
 | 
			
		||||
                        {
 | 
			
		||||
                            var policy = hasNewUserPolicy.GetNewUserPolicy();
 | 
			
		||||
                            UpdateUserPolicy(user, policy, true);
 | 
			
		||||
                        }
 | 
			
		||||
                        var policy = hasNewUserPolicy.GetNewUserPolicy();
 | 
			
		||||
                        UpdateUserPolicy(user, policy, true);
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user