mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-01 15:59:33 +00:00
Fixed further inspection issues
This commit is contained in:
parent
33e36f3d2b
commit
87533b6031
37 changed files with 46 additions and 71 deletions
|
|
@ -62,7 +62,7 @@ final class PermissionVoter extends Voter
|
|||
*
|
||||
* @return bool True if the attribute and subject are supported, false otherwise
|
||||
*/
|
||||
protected function supports(string $attribute, $subject): bool
|
||||
protected function supports(string $attribute, mixed $subject): bool
|
||||
{
|
||||
//Check if the attribute has the form @permission.operation
|
||||
if (preg_match('#^@\\w+\\.\\w+$#', $attribute)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue