Skip to content

Fix onboarding permission checks and stale state - #139

Open
biast12 wants to merge 1 commit into
masterfrom
fix-onboarding-permission-check
Open

Fix onboarding permission checks and stale state#139
biast12 wants to merge 1 commit into
masterfrom
fix-onboarding-permission-check

Conversation

@biast12

@biast12 biast12 commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Description

GuildLayout: reset onboarding store on guild change, and only show the banner for admins (permission_level >= 2). SetupLayout: pre-check cached permission and redirect non-admins. OnboardingBanner: ignore stale store entries by checking state.guild_id and use SKIP_ERROR_TOAST when dismissing the banner.

Type of Change

  • Bug fix
  • New feature
  • Breaking change

Checklist

  • My code follows the style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

Avoid spurious error toasts and stale onboarding data. API: mark onboarding GET as admin-only (SKIP_ERROR_TOAST) and accept optional Axios config for POST. GuildLayout: reset onboarding store on guild change, and only show the banner for admins (permission_level >= 2). SetupLayout: pre-check cached permission and redirect non-admins. OnboardingBanner: ignore stale store entries by checking state.guild_id and use SKIP_ERROR_TOAST when dismissing the banner.
@biast12
biast12 requested a review from a team as a code owner September 5, 2026 11:25
@github-actions github-actions Bot added the type:bug Bug Fixes label Sep 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant