1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

this should be appRouter

This commit is contained in:
cvium 2021-03-29 21:29:59 +02:00
parent 24f6d88308
commit b50c06b0f5

View file

@ -431,7 +431,7 @@ class AppRouter {
appRouter.showLocalLogin(apiClient.serverId());
} else if (data.status === 403) {
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
if (!isCurrentAllowed) {