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) {