diff --git a/core/Controller/TranslationApiController.php b/core/Controller/TranslationApiController.php index 4927b7a2be5da..9cdfbf4a151ed 100644 --- a/core/Controller/TranslationApiController.php +++ b/core/Controller/TranslationApiController.php @@ -43,6 +43,9 @@ public function __construct($appName, IRequest $request, ITranslationManager $tr $this->translationManager = $translationManager; } + /** + * @NoAdminRequired + */ public function languages(): DataResponse { return new DataResponse([ 'languages' => $this->translationManager->getLanguages(), @@ -50,6 +53,9 @@ public function languages(): DataResponse { ]); } + /** + * @NoAdminRequired + */ public function translate(string $text, ?string $fromLanguage, string $toLanguage): DataResponse { try { return new DataResponse([