From: Daniel Karbach
Date: Sat, 26 Mar 2022 11:52:59 +0000 (+0100)
Subject: only show report button for runners
X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=84f8491f7f503162a503bfbfc35d8585015b56dd;p=alttp.git
only show report button for runners
---
diff --git a/resources/js/components/rounds/Item.js b/resources/js/components/rounds/Item.js
index 52b989d..fa29f54 100644
--- a/resources/js/components/rounds/Item.js
+++ b/resources/js/components/rounds/Item.js
@@ -7,7 +7,7 @@ import SeedButton from './SeedButton';
import SeedCode from './SeedCode';
import List from '../results/List';
import ReportButton from '../results/ReportButton';
-import { isParticipant, isRunner } from '../../helpers/permissions';
+import { isRunner } from '../../helpers/permissions';
import { isComplete } from '../../helpers/Round';
import { findParticipant } from '../../helpers/Tournament';
import { hasFinishedRound } from '../../helpers/User';
@@ -57,7 +57,7 @@ const Item = ({
tournament={tournament}
/>
- {isParticipant(user, tournament) ?
+ {isRunner(user, tournament) ?