mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 00:48:04 +08:00
fix: bad api call
This commit is contained in:
@ -23,7 +23,7 @@ class PassportResource(Resource):
|
||||
raise Unauthorized("X-App-Code header is missing.")
|
||||
|
||||
if system_features.webapp_auth.enabled:
|
||||
app_settings = EnterpriseService.get_web_app_settings(app_code=app_code)
|
||||
app_settings = EnterpriseService.get_app_access_mode_by_code(app_code=app_code)
|
||||
if not app_settings or not app_settings.access_mode == "public":
|
||||
raise WebAppAuthRequiredError()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user