mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-22 00:43:49 +01:00
Router: Also check permissions for sub-pages
This commit is contained in:
parent
2ff535286a
commit
1d168e811a
@ -224,7 +224,7 @@ export class Router extends EventEmitter<{
|
|||||||
throw new Error(`no route found for: ${path}`);
|
throw new Error(`no route found for: ${path}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.route.loginRequired) {
|
if (res.route.loginRequired || res.child?.route.loginRequired) {
|
||||||
pleaseLogin("/");
|
pleaseLogin("/");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user