ソースを参照

Merge branch 'feature/V8-7526' into 'develop'

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

See merge request opentalent/ap2i!162
Vincent G. 5 ヶ月 前
コミット
417ccdd82c
1 ファイル変更2 行追加2 行削除
  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()'
         ),
     ]