mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
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:
parent
7ae0fad356
commit
aad62f2599
2 changed files with 2 additions and 2 deletions
|
@ -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)'),
|
||||||
],
|
],
|
||||||
|
|
|
@ -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)'),
|
||||||
],
|
],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue