diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-10 12:58:07 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2013-05-10 12:58:07 -0400 |
| commit | 2ea9b7e4eb7fe4a159ba2e3acc2f19ab045c778f (patch) | |
| tree | 5d6081f946662ea52c0a1519f582773433a08c6a | |
| parent | ea04e957c8c57bc7d1ebcd306decad02ea3c30c8 (diff) | |
log requests even without a user
| -rw-r--r-- | MediaBrowser.Api/BaseApiService.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/MediaBrowser.Api/BaseApiService.cs b/MediaBrowser.Api/BaseApiService.cs index 17c36254e..ee90d2134 100644 --- a/MediaBrowser.Api/BaseApiService.cs +++ b/MediaBrowser.Api/BaseApiService.cs @@ -122,15 +122,13 @@ namespace MediaBrowser.Api var auth = GetAuthorization(request); - if (auth != null && auth.ContainsKey("UserId")) + if (auth != null) { - var userId = auth["UserId"]; - User user = null; - if (!string.IsNullOrEmpty(userId)) + if (auth.ContainsKey("UserId")) { - user = UserManager.GetUserById(new Guid(userId)); + user = UserManager.GetUserById(new Guid(auth["UserId"])); } var deviceId = auth["DeviceId"]; |
