瀏覽代碼

fix?

master
Florian Eisenmenger 1 年之前
父節點
當前提交
57b7373155
共有 1 個檔案被更改,包括 3 行新增1 行删除
  1. +3
    -1
      src/Entity/DocumentObject.php

+ 3
- 1
src/Entity/DocumentObject.php 查看文件

@@ -33,6 +33,7 @@ use Vich\UploaderBundle\Mapping\Annotation as Vich;
formats: [
'multipart' => ['multipart/form-data']
],
outputFormats: ['json' => ['application/json'], 'jsonld' => ['application/ld+json']],
controller: CreateDocumentObjectAction::class,
openapi: new Model\Operation(
requestBody: new Model\RequestBody(
@@ -56,8 +57,9 @@ use Vich\UploaderBundle\Mapping\Annotation as Vich;
),
new Delete(),
],
formats: ['jsonld', 'json'],
normalizationContext: ['groups' => ['document_object:read']],
security: 'is_granted("ROLE_USER")',
security: 'is_granted("ROLE_USER")'
)]
class DocumentObject
{


Loading…
取消
儲存