Correction autour de l'administrateur

This commit is contained in:
Sébastien André
2021-03-18 16:32:10 +01:00
parent 733e85507a
commit beee601a57
7 changed files with 25 additions and 15 deletions

View File

@@ -9,5 +9,7 @@ export class User {
authdata?: string;
token?: string;
get IsAdmin() { return this.roles === "admin"; }
public get isAdmin(): boolean {
return this.roles === "admin";
}
}