Update dashboard.py (#791)
Some checks failed
CodeQL / Analyze (javascript) (push) Has been cancelled
CodeQL / Analyze (python) (push) Has been cancelled
Docker Build and Push / docker_build (push) Has been cancelled
Docker Build and Push / docker_scan (push) Has been cancelled

Removed `getDashboardConfiguration` from API whitelist
This commit is contained in:
Donald Zou 2025-06-17 05:01:04 +08:00 committed by GitHub
parent a818e87e96
commit 96b28a8e9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2051,7 +2051,7 @@ def auth_req():
else:
DashboardConfig.APIAccessed = False
whiteList = [
'/static/', 'validateAuthentication', 'authenticate', 'getDashboardConfiguration',
'/static/', 'validateAuthentication', 'authenticate',
'getDashboardTheme', 'getDashboardVersion', 'sharePeer/get', 'isTotpEnabled', 'locale',
'/fileDownload'
]