Skip to content

Commit

Permalink
bugfix redirect message when escalating ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurMinfotel committed Dec 2, 2024
1 parent 22c4333 commit 4dfaf25
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions front/ticket.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@

include('../../../inc/includes.php');

global $CFG_GLPI;

if (isset($_POST['escalate'])) {
$group_id = (int)$_POST['groups_id'];
$tickets_id = (int)$_POST['tickets_id'];
Expand Down Expand Up @@ -87,6 +89,8 @@
]);
}

$track = new Ticket();

if (!$track->can($_POST["tickets_id"], READ)) {
Session::addMessageAfterRedirect(
__('You have been redirected because you no longer have access to this ticket'),
Expand Down

0 comments on commit 4dfaf25

Please sign in to comment.