From 279cf3ea2320146cfd464960501a1ee385f79d0f Mon Sep 17 00:00:00 2001 From: Yongjie Zhao Date: Thu, 31 Mar 2022 10:30:28 +0800 Subject: [PATCH] fix: can't save dataset modal --- superset/views/datasource/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/views/datasource/views.py b/superset/views/datasource/views.py index 2504f458eabc2..791f7c500e0cf 100644 --- a/superset/views/datasource/views.py +++ b/superset/views/datasource/views.py @@ -81,7 +81,7 @@ def save(self) -> FlaskResponse: if "owners" in datasource_dict and orm_datasource.owner_class is not None: # Check ownership - if app.config["OLD_API_CHECK_DATASET_OWNERSHIP"]: + if app.config.get("OLD_API_CHECK_DATASET_OWNERSHIP"): # mimic the behavior of the new dataset command that # checks ownership and ensures that non-admins aren't locked out # of the object