Handle correctly when losing access to a ticket after changing its actors #762
Labels
ready ✅
You can work on this!
topic: ticketing
All the stuff related to the tickets
type: bug
Something isn't working
Milestone
Problem
An agent may have access to a ticket because they are assigned to it.
If after changing the actors the agent no longer has access to the ticket, they got an error.
Solution
If after changing the actors the agent no longer has access to the ticket, redirect to the list of tickets and display a notification explaining that access has been lost.
Specification
In
src/Controller/Tickets/ActorsController.php
, before redirecting to the ticket, check if the current user still has access to the ticket:If the condition is false, set a "success" notification and redirect to the list of tickets of the organization:
The text was updated successfully, but these errors were encountered: