Explorar el Código

Merge remote-tracking branch 'origin/develop' into develop

Olivier Massot hace 8 meses
padre
commit
7d9c051555
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/Entity/Access/Preferences.php

+ 2 - 2
src/Entity/Access/Preferences.php

@@ -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()'
         ),
     ]