You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2022/04/04 08:22:17 UTC

[superset] 08/24: fix: can't save dataset modal (#19452)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to tag 1.5.0rc1
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 3c09690ed2fda6110d811710754c7ec23f0215a8
Author: Yongjie Zhao <yo...@gmail.com>
AuthorDate: Thu Mar 31 16:29:52 2022 +0800

    fix: can't save dataset modal (#19452)
    
    (cherry picked from commit 6b136c2bc9a6c9756e5319b045e3c42da06243cb)
---
 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 2504f458ea..791f7c500e 100644
--- a/superset/views/datasource/views.py
+++ b/superset/views/datasource/views.py
@@ -81,7 +81,7 @@ class Datasource(BaseSupersetView):
 
         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