From cb247fd81c18104e12f2f782221b7c76ee336b81 Mon Sep 17 00:00:00 2001 From: Grace Guo Date: Tue, 22 May 2018 15:31:37 -0700 Subject: [PATCH] [Dashboard] Allow Superset Alpha, Gamma users to save dashboard as a copy (#5051) --- superset/views/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/superset/views/core.py b/superset/views/core.py index cee69867ef031..e8fc43fcb6b8a 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -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')