Forráskód Böngészése

7526 : Opération Patch à la place de Put pour les préférences utilisateur

Vincent 5 hónapja
szülő
commit
319afe662b
1 módosított fájl, 2 hozzáadás és 2 törlés
  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()'
         ),
     ]