Fix conditional with a less verbose one

Co-Authored-By: Vasily <JustAMan@users.noreply.github.com>
This commit is contained in:
Davide Polonio 2020-03-03 19:51:03 +01:00 committed by GitHub
parent 5d760b7ee8
commit 737d4d2b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,8 +275,8 @@ namespace MediaBrowser.Api
{
var users = _userManager
.Users
.Where(item => item.Policy.IsDisabled == false)
.Where(item => item.Policy.IsHidden == false);
.Where(item => !item.Policy.IsDisabled)
.Where(item => !item.Policy.IsHidden);
var deviceId = _authContext.GetAuthorizationInfo(Request).DeviceId;