]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/permissions.js
lock tournaments
[alttp.git] / resources / js / helpers / permissions.js
index 2565d44d04edd58f6000c3fc5c60e3326d7cd2f4..769edda98e04d79f0be12c76190998e47e936de3 100644 (file)
@@ -18,6 +18,9 @@ export const hasFinished = (user, round) =>
        round.results.find(r => r.user_id == user.id && r.has_finished);
 
 export const mayAddRounds = (user, tournament) =>
+       isAdmin(user) || (!tournament.locked && isParticipant(user, tournament));
+
+export const maySetSeed = (user, tournament) =>
        isAdmin(user) || isParticipant(user, tournament);
 
 export const mayViewProtocol = user =>