mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-06 10:16:18 +00:00
added cloud sync model objects
This commit is contained in:
@@ -76,7 +76,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
||||
{typeof (InvalidOperationException), 422},
|
||||
{typeof (ResourceNotFoundException), 404},
|
||||
{typeof (FileNotFoundException), 404},
|
||||
{typeof (DirectoryNotFoundException), 404}
|
||||
{typeof (DirectoryNotFoundException), 404},
|
||||
{typeof (Implementations.Security.AuthenticationException), 401}
|
||||
};
|
||||
|
||||
HostConfig.Instance.DebugMode = true;
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer.Security
|
||||
|
||||
if (user != null && user.Configuration.IsDisabled)
|
||||
{
|
||||
throw new UnauthorizedAccessException("User account has been disabled.");
|
||||
throw new AuthenticationException("User account has been disabled.");
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(auth.DeviceId) &&
|
||||
|
||||
Reference in New Issue
Block a user