Router: Also check permissions for sub-pages

This commit is contained in:
Crimekillz 2024-04-18 01:37:13 +02:00
parent 2ff535286a
commit 1d168e811a

View File

@ -224,7 +224,7 @@ export class Router extends EventEmitter<{
throw new Error(`no route found for: ${path}`);
}
if (res.route.loginRequired) {
if (res.route.loginRequired || res.child?.route.loginRequired) {
pleaseLogin("/");
}