aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/BaseApiService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-16 23:48:05 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-16 23:48:05 -0400
commitae6792a436a682866bb181f6aa8c53b20eb02f28 (patch)
tree0d4304f939f2a923b169c90e82e481867ed5fd26 /MediaBrowser.Api/BaseApiService.cs
parentbe6d4c3f530bbdd787b353996f42275187821716 (diff)
don't show sync profile for audio jobs
Diffstat (limited to 'MediaBrowser.Api/BaseApiService.cs')
-rw-r--r--MediaBrowser.Api/BaseApiService.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs
index e009ccfac..4465be97a 100644
--- a/MediaBrowser.Api/BaseApiService.cs
+++ b/MediaBrowser.Api/BaseApiService.cs
@@ -41,8 +41,6 @@ namespace MediaBrowser.Api
public ISessionContext SessionContext { get; set; }
public IAuthorizationContext AuthorizationContext { get; set; }
- public IUserManager UserManager { get; set; }
-
public string GetHeader(string name)
{
return Request.Headers[name];
@@ -75,11 +73,11 @@ namespace MediaBrowser.Api
return ResultFactory.GetOptimizedResultUsingCache(Request, cacheKey, lastDateModified, cacheDuration, factoryFn);
}
- protected void AssertCanUpdateUser(string userId)
+ protected void AssertCanUpdateUser(IUserManager userManager, string userId)
{
var auth = AuthorizationContext.GetAuthorizationInfo(Request);
- var authenticatedUser = UserManager.GetUserById(auth.UserId);
+ var authenticatedUser = userManager.GetUserById(auth.UserId);
// If they're going to update the record of another user, they must be an administrator
if (!string.Equals(userId, auth.UserId, StringComparison.OrdinalIgnoreCase))