Update dashboard.py (#791)

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
+1 -1
View File
@@ -2051,7 +2051,7 @@ def auth_req():
else: else:
DashboardConfig.APIAccessed = False DashboardConfig.APIAccessed = False
whiteList = [ whiteList = [
'/static/', 'validateAuthentication', 'authenticate', 'getDashboardConfiguration', '/static/', 'validateAuthentication', 'authenticate',
'getDashboardTheme', 'getDashboardVersion', 'sharePeer/get', 'isTotpEnabled', 'locale', 'getDashboardTheme', 'getDashboardVersion', 'sharePeer/get', 'isTotpEnabled', 'locale',
'/fileDownload' '/fileDownload'
] ]