Skip to content

Commit c46650a

Browse files
committed
fixup! feat: add form locking mechanism
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
1 parent e72f665 commit c46650a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/ApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ public function newForm(?int $fromId = null): DataResponse {
179179

180180
$this->formMapper->insert($form);
181181
} else {
182-
$oldForm = $this->formsService->getFormIfAllowed($fromId);
182+
$oldForm = $this->formsService->getFormIfAllowed($fromId, Constants::PERMISSION_EDIT);
183183

184184
// Read old form, (un)set new form specific data, extend title
185185
$formData = $oldForm->read();

0 commit comments

Comments
 (0)