address comments, rename to ENABLE_ADMIN_EXPORT
This commit is contained in:
@@ -91,7 +91,7 @@ async def download_chat_as_pdf(
|
||||
|
||||
@router.get("/db/download")
|
||||
async def download_db(user=Depends(get_admin_user)):
|
||||
if not ALLOW_ADMIN_EXPORT:
|
||||
if not ENABLE_ADMIN_EXPORT:
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_401_UNAUTHORIZED,
|
||||
detail=ERROR_MESSAGES.ACCESS_PROHIBITED,
|
||||
|
||||
Reference in New Issue
Block a user