]> git.localhorst.tv Git - alttp.git/commitdiff
only show report button for runners
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 26 Mar 2022 11:52:59 +0000 (12:52 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 26 Mar 2022 11:52:59 +0000 (12:52 +0100)
resources/js/components/rounds/Item.js

index 52b989d7a4aac04e484022103b6b6c86139570b4..fa29f5404daeb71e71a5a5265292cfdc3faf5ccf 100644 (file)
@@ -7,7 +7,7 @@ import SeedButton from './SeedButton';
 import SeedCode from './SeedCode';
 import List from '../results/List';
 import ReportButton from '../results/ReportButton';
 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';
 import { isComplete } from '../../helpers/Round';
 import { findParticipant } from '../../helpers/Tournament';
 import { hasFinishedRound } from '../../helpers/User';
@@ -57,7 +57,7 @@ const Item = ({
                                tournament={tournament}
                        />
                </p>
                                tournament={tournament}
                        />
                </p>
-               {isParticipant(user, tournament) ?
+               {isRunner(user, tournament) ?
                        <p className="report">
                                <ReportButton
                                        participant={findParticipant(tournament, user)}
                        <p className="report">
                                <ReportButton
                                        participant={findParticipant(tournament, user)}