aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Devices
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-12-31 01:24:49 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-12-31 01:24:49 -0500
commit8f26921d0056f1146e8f773700078174b9642a26 (patch)
tree6e596a3deff1281b1b95e54c2df6cadc5298cf31 /MediaBrowser.Server.Implementations/Devices
parent5e6354854d716b30d106aa09d39736cef8d5e165 (diff)
create sync job items pages
Diffstat (limited to 'MediaBrowser.Server.Implementations/Devices')
-rw-r--r--MediaBrowser.Server.Implementations/Devices/DeviceManager.cs7
1 files changed, 6 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs b/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs
index 3810fec667..99fa40789e 100644
--- a/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs
+++ b/MediaBrowser.Server.Implementations/Devices/DeviceManager.cs
@@ -105,7 +105,12 @@ namespace MediaBrowser.Server.Implementations.Devices
var val = query.SupportsUniqueIdentifier.Value;
devices = devices.Where(i => GetCapabilities(i.Id).SupportsUniqueIdentifier == val);
- }
+ }
+
+ if (!string.IsNullOrWhiteSpace(query.UserId))
+ {
+ devices = devices.Where(i => CanAccessDevice(query.UserId, i.Id));
+ }
var array = devices.ToArray();
return new QueryResult<DeviceInfo>