fix ipad login issue

This commit is contained in:
Luke Pulverenti
2014-07-14 21:25:58 -04:00
parent 9c252f3e50
commit 98012480f7
5 changed files with 45 additions and 3 deletions

View File

@@ -66,6 +66,12 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
? null
: UserManager.GetUserById(new Guid(auth.UserId));
if (user == null & !string.IsNullOrWhiteSpace(auth.UserId))
{
// TODO: Re-enable
//throw new ArgumentException("User with Id " + auth.UserId + " not found");
}
if (user != null && user.Configuration.IsDisabled)
{
throw new UnauthorizedAccessException("User account has been disabled.");