Florian Eisenmenger vor 1 Jahr
Ursprung
Commit
57b7373155
1 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen
  1. +3
    -1
      src/Entity/DocumentObject.php

+ 3
- 1
src/Entity/DocumentObject.php Datei anzeigen

@@ -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
{


Laden…
Abbrechen
Speichern