mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +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
|
@ -260,9 +260,7 @@ class LogDataTable implements DataTableTypeInterface
|
|||
return null;
|
||||
},
|
||||
'disabled' => function ($value, AbstractLogEntry $context) {
|
||||
return
|
||||
!$this->security->isGranted('@tools.timetravel')
|
||||
|| !$this->security->isGranted('show_history', $context->getTargetClass());
|
||||
return !$this->security->isGranted('show_history', $context->getTargetClass());
|
||||
},
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue