Skip to content

Commit

Permalink
only allow trouble_ticket_eresources tagged tickets to be viewed
Browse files Browse the repository at this point in the history
  • Loading branch information
bricas committed Oct 24, 2023
1 parent 43e0ba0 commit 4a157e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function view(int $id) {
$fogbugz = \Drupal::service('fogbugz_api.manager');
$case = $fogbugz->getCase($id);

if (!$case) {
if (!$case || !in_array('trouble_ticket_eresources', $case->getTags())) {
throw new NotFoundHttpException();
}

Expand Down

0 comments on commit 4a157e0

Please sign in to comment.