feat: creates admin privileges

This commit is contained in:
tdurieux
2021-09-09 14:58:38 +02:00
parent 76b5d00fb8
commit 62fd9eca7d
6 changed files with 23 additions and 45 deletions

View File

@@ -22,6 +22,10 @@ export default class User {
return this._model.username;
}
get isAdmin(): boolean {
return !!this._model.isAdmin;
}
get accessToken(): string {
return this._model.accessTokens.github;
}