Skip to content

Commit

Permalink
[Dashboard] Allow Superset Alpha, Gamma users to save dashboard as a …
Browse files Browse the repository at this point in the history
…copy (#5051)
  • Loading branch information
Grace Guo authored May 22, 2018
1 parent b8aeb1a commit 4c44223
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2049,9 +2049,9 @@ def dashboard(**kwargs): # noqa
pass
dashboard(dashboard_id=dash.id)

dash_edit_perm = check_ownership(dash, raise_if_false=False)
dash_save_perm = \
dash_edit_perm and security_manager.can_access('can_save_dash', 'Superset')
dash_edit_perm = check_ownership(dash, raise_if_false=False) and \
security_manager.can_access('can_save_dash', 'Superset')
dash_save_perm = security_manager.can_access('can_save_dash', 'Superset')
superset_can_explore = security_manager.can_access('can_explore', 'Superset')
slice_can_edit = security_manager.can_access('can_edit', 'SliceModelView')

Expand Down

0 comments on commit 4c44223

Please sign in to comment.