|
|
@@ -7,7 +7,7 @@ namespace App\Entity\Access;
|
|
|
// use DH\Auditor\Provider\Doctrine\Auditing\Annotation\Auditable;
|
|
|
use ApiPlatform\Metadata\ApiResource;
|
|
|
use ApiPlatform\Metadata\Get;
|
|
|
-use ApiPlatform\Metadata\Put;
|
|
|
+use ApiPlatform\Metadata\Patch;
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
|
|
|
|
/**
|
|
|
@@ -20,7 +20,7 @@ use Doctrine\ORM\Mapping as ORM;
|
|
|
new Get(
|
|
|
security: 'object.getAccess().getId() == user.getId()'
|
|
|
),
|
|
|
- new Put(
|
|
|
+ new Patch(
|
|
|
security: 'object.getAccess().getId() == user.getId()'
|
|
|
),
|
|
|
]
|