Skip to content

Commit

Permalink
Merge pull request #106 from nextcloud/fix/no-admin-required-chatty-l…
Browse files Browse the repository at this point in the history
…lm-controller

Fix: Don't require Admin access for Chat with AI
marcelklehr authored Aug 7, 2024
2 parents cc319d4 + 9c1c23e commit 8535cc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Controller/ChattyLLMController.php
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 8535cc4

Please sign in to comment.