You've already forked obsidian-visualiser
Add permissions
This commit is contained in:
6
types/auth.d.ts
vendored
6
types/auth.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user