aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-14 13:25:46 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-09-14 13:25:46 -0400
commit14bb0aa30c4f13e4093b5a80fcb964c0402feda0 (patch)
tree9a0bb000c9925a7b790744c904d2c2fc61738ca9 /MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
parentb12215b3f94dd7f7d5cff6a703b037e215090a98 (diff)
check if connect user is active
Diffstat (limited to 'MediaBrowser.Server.Implementations/Connect/ConnectManager.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Connect/ConnectManager.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
index d0de64a6f..6a1c3f074 100644
--- a/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
+++ b/MediaBrowser.Server.Implementations/Connect/ConnectManager.cs
@@ -291,6 +291,11 @@ namespace MediaBrowser.Server.Implementations.Connect
}, CancellationToken.None).ConfigureAwait(false);
+ if (!connectUser.IsActive)
+ {
+ throw new ArgumentException("The Media Browser account has been disabled.");
+ }
+
var user = GetUser(userId);
if (!string.IsNullOrWhiteSpace(user.ConnectUserId))
@@ -422,7 +427,8 @@ namespace MediaBrowser.Server.Implementations.Connect
{
Email = response.Email,
Id = response.Id,
- Name = response.Name
+ Name = response.Name,
+ IsActive = response.IsActive
};
}
}