Skip to content

Commit

Permalink
Apply suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lainow committed Sep 25, 2024
1 parent 48dde92 commit 361bfa1
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions front/ticket.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,15 @@
) . $_POST['comment']
]);
}

if (!$track->can($_POST["tickets_id"], READ)) {
Session::addMessageAfterRedirect(
__('You have been redirected because you no longer have access to this ticket'),
true,
ERROR
);
Html::redirect($CFG_GLPI["root_doc"] . "/front/ticket.php");
}
}

Session::addMessageAfterRedirect(
__('You have been redirected because you no longer have access to this ticket'),
true,
ERROR
);
Html::redirect($CFG_GLPI["root_doc"] . "/front/ticket.php");
Html::back();

0 comments on commit 361bfa1

Please sign in to comment.