aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/BaseApiService.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-04-21 16:04:24 -0400
committerGitHub <noreply@github.com>2017-04-21 16:04:24 -0400
commit82b86449cb4083ab8d875b22f40beb93d2f821f8 (patch)
treeb81c447168b9e574effd3ee6ca1d69fa57dcdf21 /MediaBrowser.Api/BaseApiService.cs
parent26b655b37b0a393f3e400b69ed6915dab76ffd0e (diff)
parent1a601e32fd3a29e26f693a7a43c06f2f5f9986ca (diff)
Merge pull request #2593 from MediaBrowser/dev
Dev
Diffstat (limited to 'MediaBrowser.Api/BaseApiService.cs')
-rw-r--r--MediaBrowser.Api/BaseApiService.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs
index 1f21a1dd1..a802e56af 100644
--- a/MediaBrowser.Api/BaseApiService.cs
+++ b/MediaBrowser.Api/BaseApiService.cs
@@ -66,7 +66,7 @@ namespace MediaBrowser.Api
return ResultFactory.GetOptimizedResult(Request, result);
}
- protected void AssertCanUpdateUser(IAuthorizationContext authContext, IUserManager userManager, string userId)
+ protected void AssertCanUpdateUser(IAuthorizationContext authContext, IUserManager userManager, string userId, bool restrictUserPreferences)
{
var auth = authContext.GetAuthorizationInfo(Request);
@@ -80,7 +80,7 @@ namespace MediaBrowser.Api
throw new SecurityException("Unauthorized access.");
}
}
- else
+ else if (restrictUserPreferences)
{
if (!authenticatedUser.Policy.EnableUserPreferenceAccess)
{