mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
fix
This commit is contained in:
parent
e04a9699a7
commit
1950126141
@ -427,12 +427,12 @@ class AppRouter {
|
|||||||
|
|
||||||
if (data.status === 403) {
|
if (data.status === 403) {
|
||||||
if (data.errorCode === 'ParentalControl') {
|
if (data.errorCode === 'ParentalControl') {
|
||||||
const isCurrentAllowed = this.currentRouteInfo ? (this.currentRouteInfo.route.anonymous || this.currentRouteInfo.route.startup) : true;
|
const isCurrentAllowed = appRouter.currentRouteInfo ? (appRouter.currentRouteInfo.route.anonymous || appRouter.currentRouteInfo.route.startup) : true;
|
||||||
|
|
||||||
// Bounce to the login screen, but not if a password entry fails, obviously
|
// Bounce to the login screen, but not if a password entry fails, obviously
|
||||||
if (!isCurrentAllowed) {
|
if (!isCurrentAllowed) {
|
||||||
this.showForcedLogoutMessage(globalize.translate('AccessRestrictedTryAgainLater'));
|
appRouter.showForcedLogoutMessage(globalize.translate('AccessRestrictedTryAgainLater'));
|
||||||
this.showLocalLogin(apiClient.serverId());
|
appRouter.showLocalLogin(apiClient.serverId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user