X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Fhelpers%2Fpermissions.js;fp=resources%2Fjs%2Fhelpers%2Fpermissions.js;h=706e676ab692d5b44ec606e66ad8fc01c13a372f;hb=3b545fa995c34c0ab8270ae495fedc24ddc2fe4d;hp=1bdb2622b6a44bb9115521ba9d8a14f1c5503561;hpb=212561cf1c6724b52c490104f5a2b4c3418b1c62;p=alttp.git diff --git a/resources/js/helpers/permissions.js b/resources/js/helpers/permissions.js index 1bdb262..706e676 100644 --- a/resources/js/helpers/permissions.js +++ b/resources/js/helpers/permissions.js @@ -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) =>