mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	tweak guid check
Co-authored-by: Bond-009 <bond.009@outlook.com>
This commit is contained in:
		
							parent
							
								
									d06fda43c1
								
							
						
					
					
						commit
						fc74c8eecf
					
				@ -246,7 +246,7 @@ namespace Jellyfin.Api.Controllers
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            var auth = await _authContext.GetAuthorizationInfo(Request).ConfigureAwait(false);
 | 
					            var auth = await _authContext.GetAuthorizationInfo(Request).ConfigureAwait(false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var user = !auth.IsApiKey && userId.HasValue && !userId.Equals(Guid.Empty)
 | 
					            var user = !auth.IsApiKey && userId.HasValue && !userId.Value.Equals(default)
 | 
				
			||||||
                ? _userManager.GetUserById(userId.Value)
 | 
					                ? _userManager.GetUserById(userId.Value)
 | 
				
			||||||
                : null;
 | 
					                : null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user