mirror of
https://github.com/mgerb/go-discord-bot
synced 2026-01-11 01:22:48 +00:00
feat: add player controls to uploaded clips on stats page
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import jwt_decode from 'jwt-decode';
|
||||
import { action, observable } from 'mobx';
|
||||
import { IClaims } from '../model';
|
||||
import { IClaims, Permissions } from '../model';
|
||||
import { axios, StorageService } from '../services';
|
||||
import { Util } from '../util';
|
||||
|
||||
@@ -40,4 +40,8 @@ export class AppStore {
|
||||
public toggleNavbar = () => {
|
||||
this.navbarOpen = !this.navbarOpen;
|
||||
};
|
||||
|
||||
public hasModPermissions = () => {
|
||||
return this.claims && this.claims.permissions >= Permissions.Mod;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user