Jelajahi Sumber

fix securité Organization

Vincent GUFFON 4 tahun lalu
induk
melakukan
5a38850dec
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/Entity/Organization/Organization.php

+ 1 - 1
src/Entity/Organization/Organization.php

@@ -24,7 +24,7 @@ use Symfony\Component\Validator\Constraints as Assert;
             'security' => '(is_granted("ROLE_ORGANIZATION_VIEW") or is_granted("ROLE_ORGANIZATION")) and object.getId() == user.getOrganization().getId()'
         ],
         'put' => [
-            'security' => 'is_granted("ROLE_ORGANIZATION") and object.getId() == user.getOrganization()s.getId()'
+            'security' => 'is_granted("ROLE_ORGANIZATION") and object.getId() == user.getOrganization().getId()'
         ]
     ]
 )]