mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-21 16:33:48 +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}`);
|
||||
}
|
||||
|
||||
if (res.route.loginRequired) {
|
||||
if (res.route.loginRequired || res.child?.route.loginRequired) {
|
||||
pleaseLogin("/");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user