aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/Sessions/SessionService.cs
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-06-14 20:15:26 -0600
committercrobibero <cody@robibe.ro>2020-06-14 20:15:26 -0600
commit589735f60ce36197be9d1c4609b0ee6e3fd3c291 (patch)
treec5dad758fee4f4eb7727780fd7eab0fa60630a71 /MediaBrowser.Api/Sessions/SessionService.cs
parente2b2f74b47cc1d281c0819795b83f8d49d1f3b09 (diff)
parentf026a1d7217c69b4eeadd258980e254702f6dde6 (diff)
Merge remote-tracking branch 'upstream/master' into HEAD
Diffstat (limited to 'MediaBrowser.Api/Sessions/SessionService.cs')
-rw-r--r--MediaBrowser.Api/Sessions/SessionService.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Sessions/SessionService.cs b/MediaBrowser.Api/Sessions/SessionService.cs
index 020bb5042..d986eea65 100644
--- a/MediaBrowser.Api/Sessions/SessionService.cs
+++ b/MediaBrowser.Api/Sessions/SessionService.cs
@@ -2,6 +2,7 @@ using System;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
+using Jellyfin.Data.Enums;
using MediaBrowser.Controller.Configuration;
using MediaBrowser.Controller.Devices;
using MediaBrowser.Controller.Library;
@@ -326,12 +327,12 @@ namespace MediaBrowser.Api.Sessions
var user = _userManager.GetUserById(request.ControllableByUserId);
- if (!user.Policy.EnableRemoteControlOfOtherUsers)
+ if (!user.HasPermission(PermissionKind.EnableRemoteControlOfOtherUsers))
{
result = result.Where(i => i.UserId.Equals(Guid.Empty) || i.ContainsUser(request.ControllableByUserId));
}
- if (!user.Policy.EnableSharedDeviceControl)
+ if (!user.HasPermission(PermissionKind.EnableSharedDeviceControl))
{
result = result.Where(i => !i.UserId.Equals(Guid.Empty));
}