refs #450. Updated security User endpoint
parent
efd5a9b7c3
commit
2e12af3c2f
|
@ -1,6 +1,5 @@
|
|||
resources:
|
||||
App\Entity\User:
|
||||
security: 'is_granted("ROLE_SUPER_ADMIN")'
|
||||
input: App\Dto\Input\UserInput
|
||||
output: App\Dto\Output\UserOutput
|
||||
processor: App\State\Processor\UserProcessor
|
||||
|
@ -10,6 +9,7 @@ resources:
|
|||
groups: ['user:write']
|
||||
operations:
|
||||
ApiPlatform\Metadata\GetCollection:
|
||||
security: 'is_granted("ROLE_SUPER_ADMIN")'
|
||||
provider: App\State\Provider\UserProvider
|
||||
filters:
|
||||
- 'api_platform.filter.user.order'
|
||||
|
@ -22,9 +22,11 @@ resources:
|
|||
ApiPlatform\Metadata\Patch:
|
||||
provider: App\State\Provider\UserProvider
|
||||
ApiPlatform\Metadata\Post:
|
||||
security: 'is_granted("ROLE_SUPER_ADMIN")'
|
||||
validationContext:
|
||||
groups: [ 'default', 'user:post' ]
|
||||
ApiPlatform\Metadata\Delete: ~
|
||||
ApiPlatform\Metadata\Delete:
|
||||
security: 'is_granted("ROLE_SUPER_ADMIN")'
|
||||
reset_password:
|
||||
provider: App\State\Provider\UserProvider
|
||||
class: ApiPlatform\Metadata\Put
|
||||
|
|
Loading…
Reference in New Issue