]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/permissions.js
simple result hiding on initial tournament request
[alttp.git] / resources / js / helpers / permissions.js
index b33f1c3b9889c4e8ba45702f9d1610b2921a1ad7..2ff823a955143dc166d4169b263a1d87890b5a61 100644 (file)
@@ -50,10 +50,11 @@ export const mayViewProtocol = (user, tournament) =>
        isAdmin(user) || isTournamentCrew(user, tournament);
 
 export const maySeeResults = (user, tournament, round) =>
+       round.locked ||
        hasFinished(user, round) ||
-               isTournamentMonitor(user, tournament) ||
-               (isTournamentAdmin(user, tournament) && !isRunner(user, tournament)) ||
-               Round.isComplete(tournament, round);
+       isTournamentMonitor(user, tournament) ||
+       (isTournamentAdmin(user, tournament) && !isRunner(user, tournament)) ||
+       Round.isComplete(tournament, round);
 
 // Users