fix album save in metadata manager

This commit is contained in:
Luke Pulverenti
2015-05-18 18:23:03 -04:00
parent deb6e5a2ee
commit 3e442e0df4
5 changed files with 46 additions and 15 deletions

View File

@@ -233,6 +233,12 @@ namespace MediaBrowser.Server.Implementations.Devices
}
var user = _userManager.GetUserById(userId);
if (user == null)
{
throw new ArgumentException("user not found");
}
if (!CanAccessDevice(user.Policy, deviceId))
{
var capabilities = GetCapabilities(deviceId);