From 74cf5e2a2e685fd84c3cce0ada0a49a71c086013 Mon Sep 17 00:00:00 2001 From: Taylor Wilsdon Date: Mon, 3 Feb 2025 11:55:52 -0500 Subject: [PATCH] fix: Restrict Google Drive credentials to authenticated users --- backend/open_webui/main.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/open_webui/main.py b/backend/open_webui/main.py index a4d63a6d7..152972b7d 100644 --- a/backend/open_webui/main.py +++ b/backend/open_webui/main.py @@ -1008,10 +1008,6 @@ async def get_app_config(request: Request): else {} ), }, - "google_drive": { - "client_id": GOOGLE_DRIVE_CLIENT_ID.value, - "api_key": GOOGLE_DRIVE_API_KEY.value, - }, **( { "default_models": app.state.config.DEFAULT_MODELS, @@ -1031,6 +1027,10 @@ async def get_app_config(request: Request): "max_count": app.state.config.FILE_MAX_COUNT, }, "permissions": {**app.state.config.USER_PERMISSIONS}, + "google_drive": { + "client_id": GOOGLE_DRIVE_CLIENT_ID.value, + "api_key": GOOGLE_DRIVE_API_KEY.value, + }, } if user is not None else {}