Skip to content

Commit

Permalink
fix: can't save dataset modal (apache#19452)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie authored and philipher29 committed Jun 9, 2022
1 parent 7627229 commit 155553b
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 155553b

Please sign in to comment.