mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-02-13 02:42:45 +00:00
feat: creates admin privileges
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user