Skip to content

Commit

Permalink
fix: can't save dataset modal (#19452)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie authored Mar 31, 2022
1 parent 129063d commit 6b136c2
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 6b136c2

Please sign in to comment.