Преглед изворни кода

fix securité Organization

Vincent GUFFON пре 4 година
родитељ
комит
5a38850dec
1 измењених фајлова са 1 додато и 1 уклоњено
  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()'
         ]
     ]
 )]