mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-31 23:39:32 +00:00
Allow to cache support status of voters
This should increase the performance a bit
This commit is contained in:
parent
879b702fc1
commit
7b6ba37667
14 changed files with 133 additions and 2 deletions
|
|
@ -51,4 +51,9 @@ final class HasAccessPermissionsVoter extends Voter
|
|||
{
|
||||
return $attribute === self::ROLE;
|
||||
}
|
||||
|
||||
public function supportsAttribute(string $attribute): bool
|
||||
{
|
||||
return $attribute === self::ROLE;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue