]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/permissions.js
all the...small things
[alttp.git] / resources / js / helpers / permissions.js
index 1bdb2622b6a44bb9115521ba9d8a14f1c5503561..706e676ab692d5b44ec606e66ad8fc01c13a372f 100644 (file)
@@ -155,6 +155,10 @@ export const maySeeResults = (user, tournament, round) =>
        isTournamentMonitor(user, tournament) ||
        Round.isComplete(tournament, round);
 
+// Twitch
+
+export const mayManageTwitchBot = user => isAdmin(user) || hasGlobalRole(user, 'twitch');
+
 // Users
 
 export const mayEditNickname = (user, subject) =>