1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 01:22:48 +00:00

refactor: move upload history to its own page

This commit is contained in:
2019-08-24 13:22:05 -05:00
parent 55a4bb73af
commit f9c3922670
12 changed files with 104 additions and 82 deletions

View File

@@ -41,7 +41,11 @@ export class AppStore {
this.navbarOpen = !this.navbarOpen;
};
public hasModPermissions = () => {
return this.claims && this.claims.permissions >= Permissions.Mod;
public hasModPermissions = (): boolean => {
return !!this.claims && this.claims.permissions >= Permissions.Mod;
};
public hasAdminPermissions = (): boolean => {
return !!this.claims && this.claims.permissions >= Permissions.Admin;
};
}