Skip to content

Add noBotWizardsRoleId to block Wizard bot checkouts#262

Merged
ebm5025 merged 1 commit into
mainfrom
claude/session-gfxi6g
Jul 21, 2026
Merged

Add noBotWizardsRoleId to block Wizard bot checkouts#262
ebm5025 merged 1 commit into
mainfrom
claude/session-gfxi6g

Conversation

@ebm5025

@ebm5025 ebm5025 commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add a new noBotWizardsRoleId config, mirroring the existing noBotsRoleId.
  • Block a checkout when the requested bot's class is Wizard and the requester holds noBotWizardsRoleId, in both /bot request <name> (checked once the bot's class is resolved) and /bot requestclass Wizard (checked up front against the requested class).
  • Applied to both account service implementations (PrismaPublicAccounts and SheetPublicAccountService) since either can be active depending on USE_PRISMA_CACHE.

Test plan

  • npx tsc --noEmit passes
  • Set noBotWizardsRoleId in the environment, grant it to a test account, and confirm /bot request <a Wizard bot> and /bot requestclass Wizard are denied while other classes remain checkout-able
  • Confirm noBotsRoleId behavior (blocking all bots) is unchanged

Generated by Claude Code

Adds a new role config that, when held, prevents a user from checking
out a bot whose class is Wizard. Enforced both when requesting a bot
by name (once its class is known) and when requesting the first
available bot of a class, in both the Prisma-backed and
sheet-backed account services.
@ebm5025
ebm5025 merged commit 30c62bd into main Jul 21, 2026
1 check passed
@ebm5025
ebm5025 deleted the claude/session-gfxi6g branch July 21, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants