mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
fix: Restrict Google Drive credentials to authenticated users
This commit is contained in:
@@ -1008,10 +1008,6 @@ async def get_app_config(request: Request):
|
|||||||
else {}
|
else {}
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
"google_drive": {
|
|
||||||
"client_id": GOOGLE_DRIVE_CLIENT_ID.value,
|
|
||||||
"api_key": GOOGLE_DRIVE_API_KEY.value,
|
|
||||||
},
|
|
||||||
**(
|
**(
|
||||||
{
|
{
|
||||||
"default_models": app.state.config.DEFAULT_MODELS,
|
"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,
|
"max_count": app.state.config.FILE_MAX_COUNT,
|
||||||
},
|
},
|
||||||
"permissions": {**app.state.config.USER_PERMISSIONS},
|
"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
|
if user is not None
|
||||||
else {}
|
else {}
|
||||||
|
|||||||
Reference in New Issue
Block a user