]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/permissions.js
application admin UI
[alttp.git] / resources / js / helpers / permissions.js
index cde0d05d7fd293f7114b6d7553ffb1144a9ffaa6..18d03bffce1c6be3f56d04de783b42d734578588 100644 (file)
@@ -58,6 +58,9 @@ export const mayApply = (user, tournament) =>
        user && tournament && tournament.accept_applications &&
                !isRunner(user, tournament) && !isApplicant(user, tournament);
 
+export const mayHandleApplications = (user, tournament) =>
+       tournament && tournament.accept_applications && isTournamentAdmin(user, tournament);
+
 export const mayLockRound = (user, tournament) =>
        !tournament.locked && isTournamentAdmin(user, tournament);