Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make ET permission check KV based
  • Loading branch information
regalijan committed Dec 31, 2023
1 parent dcd749d commit 6f5e872
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/permissions.ts
Expand Up @@ -8,7 +8,8 @@ export default async function (
if (roles?.includes("374851061233614849")) permissions |= 1 << 0; // Administration
if (!roles) permissions |= 1 << 1;
if (roles?.includes("593209890949038082")) permissions |= 1 << 2; // Discord Moderator
if (roles?.includes("391986108763996160")) permissions |= 1 << 3; // Events Team
if (Boolean(await context.env.DATA.get(`etmember_${userid}`)))
permissions |= 1 << 3; // Events Team
if (roles?.includes("607697704419852289")) permissions |= 1 << 4; // Events Team Management
if (
["165594923586945025", "289372404541554689", "396347223736057866"].includes(
Expand Down

0 comments on commit 6f5e872

Please sign in to comment.