mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Fixed PartVoter when a class string is passed
This commit is contained in:
parent
ffbcf25246
commit
a9be442dd1
1 changed files with 1 additions and 1 deletions
|
@ -64,6 +64,6 @@ final class PartVoter extends Voter
|
|||
|
||||
public function supportsType(string $subjectType): bool
|
||||
{
|
||||
return is_a($subjectType, Part::class, true);
|
||||
return $subjectType === 'string' || is_a($subjectType, Part::class, true);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue