Browse Source

fix securité Organization

Vincent GUFFON 4 years ago
parent
commit
5a38850dec
1 changed files with 1 additions and 1 deletions
  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()'
             'security' => '(is_granted("ROLE_ORGANIZATION_VIEW") or is_granted("ROLE_ORGANIZATION")) and object.getId() == user.getOrganization().getId()'
         ],
         ],
         'put' => [
         'put' => [
-            'security' => 'is_granted("ROLE_ORGANIZATION") and object.getId() == user.getOrganization()s.getId()'
+            'security' => 'is_granted("ROLE_ORGANIZATION") and object.getId() == user.getOrganization().getId()'
         ]
         ]
     ]
     ]
 )]
 )]