From: Daniel Karbach Date: Wed, 30 Mar 2022 11:42:51 +0000 (+0200) Subject: show admins finish times unless they're runners X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=30898e886296294997fe1542545b36a52c8b7ec2;p=alttp.git show admins finish times unless they're runners --- diff --git a/resources/js/helpers/permissions.js b/resources/js/helpers/permissions.js index f86b585..5979728 100644 --- a/resources/js/helpers/permissions.js +++ b/resources/js/helpers/permissions.js @@ -51,7 +51,9 @@ export const mayViewProtocol = (user, tournament) => export const maySeeResults = (user, tournament, round) => isAdmin(user) || hasFinished(user, round) || - isTournamentMonitor(user, tournament) || Round.isComplete(tournament, round); + isTournamentMonitor(user, tournament) || + (isTournamentAdmin(user, tournament) && !isRunner(user, tournament)) || + Round.isComplete(tournament, round); // Users