(ctx: Context)
| 50 | } |
| 51 | |
| 52 | export 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 | |
| 62 | export function assertCanEditServer( |
| 63 | ctx: Context, |
no outgoing calls
no test coverage detected