Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix redirect message when escalating ticket #264

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions front/ticket.form.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@

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

/** @var array $CFG_GLPI */
global $CFG_GLPI;
Rom1-B marked this conversation as resolved.
Show resolved Hide resolved

if (isset($_POST['escalate'])) {
$group_id = (int)$_POST['groups_id'];
$tickets_id = (int)$_POST['tickets_id'];
Expand Down Expand Up @@ -87,6 +90,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