Skip to content

Commit 7530ca3

Browse files
Update lib/Controller/ApiController.php
Co-authored-by: Christian Hartmann <chris-hartmann@gmx.de> Signed-off-by: L'Africain <fr.cyrille@tiberiade.be>
1 parent bd7f103 commit 7530ca3

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
@@ -1372,7 +1372,7 @@ public function newSubmission(int $formId, array $answers, string $shareHash = '
13721372
// Does the user have permissions to submit
13731373
// This is done right before insert so we minimize race conditions for submitting on unique-submission forms
13741374
if (!$this->formsService->canSubmit($form)) {
1375-
throw new OCSForbiddenException($this->l10n->t('Already submitted'));
1375+
throw new OCSForbiddenException('Already submitted');
13761376
}
13771377

13781378
// Check if max submissions limit is reached

0 commit comments

Comments
 (0)