From b50c06b0f52ee59319d99bad5219ed5544c1ceab Mon Sep 17 00:00:00 2001 From: cvium Date: Mon, 29 Mar 2021 21:29:59 +0200 Subject: [PATCH] this should be appRouter --- src/components/appRouter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/appRouter.js b/src/components/appRouter.js index 400c615d1d..7be3f652bd 100644 --- a/src/components/appRouter.js +++ b/src/components/appRouter.js @@ -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) {