remote control fix

This commit is contained in:
Luke Pulverenti 2015-04-10 22:43:30 -04:00
parent 0abe0685f5
commit 635de736a9

View File

@ -383,12 +383,12 @@ namespace MediaBrowser.Api.Session
if (!user.Policy.EnableRemoteControlOfOtherUsers) if (!user.Policy.EnableRemoteControlOfOtherUsers)
{ {
result = result.Where(i => i.ContainsUser(request.ControllableByUserId.Value)); result = result.Where(i => !i.UserId.HasValue || i.ContainsUser(request.ControllableByUserId.Value));
} }
if (!user.Policy.EnableSharedDeviceControl) if (!user.Policy.EnableSharedDeviceControl)
{ {
result = result.Where(i => !i.UserId.HasValue); result = result.Where(i => i.UserId.HasValue);
} }
result = result.Where(i => result = result.Where(i =>