]> git.localhorst.tv Git - alttp.git/commitdiff
remove global admin see result permission
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 30 Mar 2022 11:45:10 +0000 (13:45 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Wed, 30 Mar 2022 11:45:10 +0000 (13:45 +0200)
resources/js/helpers/permissions.js

index 5979728d449c2c886d777ff90321508ae64c406e..566c2d85f04602913192aad67e7c6670d80648ea 100644 (file)
@@ -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);