Add permissions

This commit is contained in:
2024-11-07 14:26:57 +01:00
parent a392841012
commit 41951d7603
20 changed files with 523 additions and 16 deletions

6
types/auth.d.ts vendored
View File

@@ -8,6 +8,8 @@ declare module 'vue-router'
requiresAuth?: boolean;
guestsGoesTo?: string;
usersGoesTo?: string;
rights?: string[];
validState?: boolean;
}
}
@@ -31,7 +33,9 @@ export interface UserExtendedData {
signin: Date;
}
export type User = UserRawData & UserExtendedData;
export type Permissions = { permissions: string[] };
export type User = UserRawData & UserExtendedData & Permissions;
export interface UserSession {
user?: User;