Fixed Travis errors.

This commit is contained in:
Jan Böhmer 2020-03-07 21:36:33 +01:00
parent 55b00c7f22
commit 84d268aba3
8 changed files with 13 additions and 12 deletions

View file

@ -120,7 +120,7 @@ abstract class BaseAdminController extends AbstractController
$timeTravel_timestamp = null;
if ($timestamp !== null) {
$this->denyAccessUnlessGranted('@tools.timeTravel');
$this->denyAccessUnlessGranted('show_history', $part);
$this->denyAccessUnlessGranted('show_history', $entity);
//If the timestamp only contains numbers interpret it as unix timestamp
if (ctype_digit($timestamp)) {
$timeTravel_timestamp = new \DateTime();