RM-237: Claimer switchpanel behavior#97
Merged
BenHall-1 merged 7 commits intoTicketsBot-cloud:masterfrom Mar 8, 2026
Merged
Conversation
Implements logic to handle claimer access when switching panels or unclaiming tickets, based on the SwitchPanelClaimBehavior setting. Adds permission checks to ensure claimers have access to the new panel, supports auto-unclaim and permission overwrite updates, and introduces new i18n messages for these scenarios. Also fixes a bug in GetAllowedStaffUsersAndRoles and adds HasPermissionForPanel helper.
This was referenced Jan 24, 2026
Refactored HasPermissionForTicket to clarify permission checks and extracted IsAdminForGuild as a separate function. The new structure improves readability and separates admin logic from ticket-specific permission checks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
RM-237
This PR adds the handling for claiming / switch panel behavior, what it should do when a panel is being switched when the ticket is claimed
Other required PRs:
TicketsBot-cloud/dashboard#79
TicketsBot-cloud/database#22 ✓
TicketsBot-cloud/locale#144
TicketsBot-cloud/docs#27
THIS PR NEEDS THE DATABASE BUMPLED FOR IT TO WORKType of Change
Testing
You need to test all the 4 options:
You need 2 users and 2 panels, user 1 to open the ticket in panel 1 and and user 2 needs to be in a team in panel 1 but not 2, then user 2 needs to claim the ticket, this needs to be repeated with 4 tickets
Checklist