From 6b136c2bc9a6c9756e5319b045e3c42da06243cb Mon Sep 17 00:00:00 2001 From: Yongjie Zhao Date: Thu, 31 Mar 2022 16:29:52 +0800 Subject: [PATCH] fix: can't save dataset modal (#19452) --- 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