From 0409393a4e7ce28e335a4d704d24d63bf5ff1e2a Mon Sep 17 00:00:00 2001 From: Grace Guo Date: Wed, 23 Sep 2020 10:55:32 -0700 Subject: [PATCH] fix: [dashboard] should not show edit button when user has no edit permit (#11024) --- superset-frontend/src/dashboard/components/Header.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/superset-frontend/src/dashboard/components/Header.jsx b/superset-frontend/src/dashboard/components/Header.jsx index 55f94aed938a3..615b078d2a0fc 100644 --- a/superset-frontend/src/dashboard/components/Header.jsx +++ b/superset-frontend/src/dashboard/components/Header.jsx @@ -443,6 +443,7 @@ class Header extends React.PureComponent { tabIndex={0} className="action-button" onClick={this.toggleEditMode} + disabled={!userCanEdit} >