Skip to content

Commit

Permalink
fix: can't save dataset modal (#19452)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6b136c2)
  • Loading branch information
zhaoyongjie authored and villebro committed Apr 4, 2022
1 parent 795ed3c commit 3c09690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/views/datasource/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c09690

Please sign in to comment.