osTicket Version v1.9.4 I have a need to block access to tickets when they are in a locked status.Here is the scenario:Sales Rep 1 opens ticket and it is locked. While Sales Rep 1 is determining who should get the ticket, Sales Rep 2 & 3 open the same ticket.I have modified the scp.css file to turn the err-banner RED and increased the font, I even took the claim button code out of ticket-view.inc.php.But what I would really like is to prevent Sales Rep 2 & 3 from even being able to access the ticket while a lock is in place.Which file would I edit to put a redirect back to the open ticket view and how would I accomplish this? I am by no means a developer, I just happen to be really good at tracing code and modifying it.Here is my vision after the change:Sales Rep 1 opens ticket and it is locked. While Sales Rep 1 is determining who should get the ticket, Sales Rep 2 & 3 try to open ticket and are redirected back to the open ticket view.A few nice to haves would be a message box saying that the ticket is locked by XXX before the redirect and maybe I'll add a column in the open ticket view to pull the lock owner as well.

11 days later

Sounds like it's not so easy to achieve. I would start by looking into the code and search for the place when a ticket is opened. Then modify this place to include a simple if clause which checks if the ticket is locked and when it is locked, redirect the user back to the queue.

Not really a detailed help what to modify in the code, I know, but that's the point to start in my opinion. Since no one else (as far as I know) has requested the same, I doubt that there will be any solution on the forum, but just in case I remember not correctly, search is your friend ;) (if you have not already used it)

Write a Reply...