Skip to content

Commit

Permalink
Fix: Don't require Admin access for Chat with AI
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <[email protected]>
  • Loading branch information
marcelklehr committed Aug 7, 2024
1 parent bf1ea1b commit 9c1c23e
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
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 9c1c23e

Please sign in to comment.