From 9c1c23ecf4b975911cadd2058db3f35511538d80 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 7 Aug 2024 10:47:37 +0200 Subject: [PATCH] Fix: Don't require Admin access for Chat with AI Signed-off-by: Marcel Klehr --- lib/Controller/ChattyLLMController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Controller/ChattyLLMController.php b/lib/Controller/ChattyLLMController.php index 1b1d92d8..6138255e 100644 --- a/lib/Controller/ChattyLLMController.php +++ b/lib/Controller/ChattyLLMController.php @@ -349,6 +349,7 @@ public function regenerateForSession(int $sessionId, int $messageId): JSONRespon * @return JSONResponse * @throws \OCP\DB\Exception */ + #[NoAdminRequired] public function checkMessageGenerationTask(int $taskId, int $sessionId): JSONResponse { if ($this->userId === null) { return new JSONResponse(['error' => $this->l10n->t('User not logged in')], Http::STATUS_UNAUTHORIZED); @@ -437,6 +438,7 @@ public function generateTitle(int $sessionId): JSONResponse { } } + #[NoAdminRequired] public function checkTitleGenerationTask(int $taskId, int $sessionId): JSONResponse { if ($this->userId === null) { return new JSONResponse(['error' => $this->l10n->t('User not logged in')], Http::STATUS_UNAUTHORIZED);