From 19501261410638a9ca73059c1ca68a224d10d874 Mon Sep 17 00:00:00 2001 From: Claus Vium Date: Sat, 10 Apr 2021 11:45:55 +0200 Subject: [PATCH] fix --- src/components/appRouter.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index f7b41d77ff..28cf91ef15 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -427,12 +427,12 @@ class AppRouter { 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) { - this.showForcedLogoutMessage(globalize.translate('AccessRestrictedTryAgainLater')); - this.showLocalLogin(apiClient.serverId()); + appRouter.showForcedLogoutMessage(globalize.translate('AccessRestrictedTryAgainLater')); + appRouter.showLocalLogin(apiClient.serverId()); } } }