Skip to content

Commit

Permalink
Changes the can_access check
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Jan 19, 2022
1 parent 3cc1fa9 commit bb15449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/charts/form_data/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def check_access(cmd_params: CommandParameters) -> Optional[bool]:
can_access_chart = (
is_user_admin()
or is_owner(chart, actor)
or security_manager.can_access("can_write", "Chart")
or security_manager.can_access("can_read", "Chart")
)
if can_access_chart:
return True
Expand Down

0 comments on commit bb15449

Please sign in to comment.