Add security to Langauge resources

This commit is contained in:
Clemente Raposo 2020-03-27 18:29:29 +00:00 committed by Dillon-Brown
parent c430dacbfc
commit eb397fba2f
2 changed files with 2 additions and 0 deletions

View file

@ -8,6 +8,7 @@ use ApiPlatform\Core\Annotation\ApiProperty;
/**
* @ApiResource(
* attributes={"security"="is_granted('ROLE_USER')"},
* itemOperations={
* "get"
* },

View file

@ -8,6 +8,7 @@ use ApiPlatform\Core\Annotation\ApiProperty;
/**
* @ApiResource(
* attributes={"security"="is_granted('ROLE_USER')"},
* itemOperations={
* "get"
* },