Enhance dashboard guild access with owner bypass functionality

- Introduced `resolveDashboardGuild` to handle guild resolution for both managed and owner-panel bypass scenarios.
- Updated `GuildLayout` and `WelcomePage` components to utilize the new guild resolution logic, improving access handling.
- Enhanced `DashboardShell` to display an informational banner for users accessing guilds via the owner-panel bypass.
- Added localization support for owner bypass messages in English and German.
- Updated authentication logic to allow owner-panel users to access guilds without Discord Manage Guild permission.
This commit is contained in:
smueller
2026-07-24 11:59:16 +02:00
parent e45642b6f9
commit 20593b7173
10 changed files with 133 additions and 22 deletions

View File

@@ -273,6 +273,11 @@
"botMissing": "Not installed",
"empty": "No servers found. You need the Manage Server permission on a Discord server to appear here."
},
"ownerBypass": {
"title": "Owner access",
"description": "You are editing this server via the Owner panel without Discord Manage Server permission.",
"backToOwner": "Back to guild management"
},
"overview": {
"title": "Overview",
"moduleStatusTitle": "Module status",
@@ -997,6 +1002,7 @@
"createInvite": "Create invite",
"inviteCopied": "Invite copied: {url}",
"inviteCreated": "Invite created: {url}",
"openDashboard": "Open dashboard",
"blacklisted": "Blacklisted",
"blacklist": "Blacklist",
"unblacklist": "Remove blacklist",