From: Daniel Karbach Date: Wed, 30 Mar 2022 11:45:10 +0000 (+0200) Subject: remove global admin see result permission X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=edb883a1c3f74383db57d6b3ee93ba4c82a38f34;p=alttp.git remove global admin see result permission --- diff --git a/resources/js/helpers/permissions.js b/resources/js/helpers/permissions.js index 5979728..566c2d8 100644 --- a/resources/js/helpers/permissions.js +++ b/resources/js/helpers/permissions.js @@ -50,7 +50,7 @@ export const mayViewProtocol = (user, tournament) => isAdmin(user) || isTournamentCrew(user, tournament); export const maySeeResults = (user, tournament, round) => - isAdmin(user) || hasFinished(user, round) || + hasFinished(user, round) || isTournamentMonitor(user, tournament) || (isTournamentAdmin(user, tournament) && !isRunner(user, tournament)) || Round.isComplete(tournament, round);