diff --git a/frontend/models/personalBest.ts b/frontend/models/personalBest.ts index 339ad8e..775e535 100644 --- a/frontend/models/personalBest.ts +++ b/frontend/models/personalBest.ts @@ -430,6 +430,11 @@ export const PersonalBest = >{ { text: 'Flag PB', icon: 'mdi-flag', + showIf: (that, _item) => { + return ['ADMIN', 'MODERATOR'].includes( + that.$store.getters['auth/user']?.role + ) + }, handleClick: flagPersonalBest, }, ],