Fix: Edit Source button disappeared for users without CanEdit perms (#5568)

This commit is contained in:
Jesse 2021-08-30 02:43:00 -05:00 committed by GitHub
parent 380345bb08
commit e9bcc3c924
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,7 +179,7 @@ export default function QueryPageHeader({
{!queryFlags.isNew && queryFlags.canViewSource && (
<span>
{!sourceMode && queryFlags.canEdit && (
{!sourceMode && (
<Link.Button className="m-r-5" href={query.getUrl(true, selectedVisualization)}>
<i className="fa fa-pencil-square-o" aria-hidden="true" />
<span className="m-l-5">Edit Source</span>