mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-30 14:49:55 +02:00
Fixed some more phpstan issues
This commit is contained in:
parent
2f46fbfc7a
commit
e8771ea118
77 changed files with 192 additions and 109 deletions
|
@ -63,7 +63,7 @@ class LogEntryVoter extends ExtendedVoter
|
|||
//To view details of a element related log entry, the user needs to be able to view the history of this entity type
|
||||
$targetClass = $subject->getTargetClass();
|
||||
if (null !== $targetClass) {
|
||||
return $this->security->isGranted('show_history', $targetClass) ?? false;
|
||||
return $this->security->isGranted('show_history', $targetClass);
|
||||
}
|
||||
|
||||
//In other cases, this behaves like the read permission
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue