MCPcopy Index your code
hub / github.com/AnswerOverflow/AnswerOverflow / isSuperUser

Function isSuperUser

packages/api/src/utils/permissions.ts:52–60  ·  view source on GitHub ↗
(ctx: Context)

Source from the content-addressed store, hash-verified

50}
51
52export function isSuperUser(ctx: Context) {
53 if (
54 ctx.discordAccount?.id === '523949187663134754' &&
55 ctx.session?.isTenantSession === false
56 ) {
57 return true; // This is the ID of Rhys - TODO: Swap to an env var
58 }
59 return false;
60}
61
62export function assertCanEditServer(
63 ctx: Context,

Callers 5

assertCanEditServerFunction · 0.85
assertCanEditMessageFunction · 0.85
assertIsUserInServerFunction · 0.85
assertIsUserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected