Add allowedAccountTypes page metadata which the authenticated middleware uses to further restrict the types of accounts that can access the page. If the account type is insufficent to access the page it will return an HTTP 403 Forbidden status, which is rendered using the error page.
13 lines
189 B
TypeScript
13 lines
189 B
TypeScript
declare module "#app" {
|
|
interface PageMeta {
|
|
allowedAccountTypes?: string[],
|
|
}
|
|
}
|
|
|
|
declare module "vue-router" {
|
|
interface RouteMeta {
|
|
allowedAccountTypes?: string[],
|
|
}
|
|
}
|
|
|
|
export {}
|