Disable POST operations for Attachment and AbstractParameter groups for now, as they can not work properly

As they work on abstract classes, they can not be initialized directly currently and you need to create them via a PATCH operation on their owning elements.
This commit is contained in:
Jan Böhmer 2024-01-28 19:53:33 +01:00
parent 7ae0fad356
commit aad62f2599
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ use LogicException;
operations: [ operations: [
new Get(security: 'is_granted("read", object)'), new Get(security: 'is_granted("read", object)'),
new GetCollection(security: 'is_granted("@attachments.list_attachments")'), new GetCollection(security: 'is_granted("@attachments.list_attachments")'),
new Post(securityPostDenormalize: 'is_granted("create", object)'), //new Post(securityPostDenormalize: 'is_granted("create", object)'),
new Patch(security: 'is_granted("edit", object)'), new Patch(security: 'is_granted("edit", object)'),
new Delete(security: 'is_granted("delete", object)'), new Delete(security: 'is_granted("delete", object)'),
], ],

View file

@ -82,7 +82,7 @@ use function sprintf;
shortName: 'Parameter', shortName: 'Parameter',
operations: [ operations: [
new Get(security: 'is_granted("read", object)'), new Get(security: 'is_granted("read", object)'),
new Post(securityPostDenormalize: 'is_granted("create", object)'), //new Post(securityPostDenormalize: 'is_granted("create", object)'),
new Patch(security: 'is_granted("edit", object)'), new Patch(security: 'is_granted("edit", object)'),
new Delete(security: 'is_granted("delete", object)'), new Delete(security: 'is_granted("delete", object)'),
], ],