mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Removed timetravel permission
Now it is sufficient enough to have the show_history permission
This commit is contained in:
parent
70120bdaa9
commit
ae4cb23b18
4 changed files with 1 additions and 8 deletions
|
@ -143,7 +143,6 @@ abstract class BaseAdminController extends AbstractController
|
|||
protected function revertElementIfNeeded(AbstractDBElement $entity, ?string $timestamp): ?DateTime
|
||||
{
|
||||
if (null !== $timestamp) {
|
||||
$this->denyAccessUnlessGranted('@tools.timetravel');
|
||||
$this->denyAccessUnlessGranted('show_history', $entity);
|
||||
//If the timestamp only contains numbers interpret it as unix timestamp
|
||||
if (ctype_digit($timestamp)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue