Skip to content

Commit

Permalink
Fix: Edit Source button disappeared for users without CanEdit perms (g…
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse authored Aug 30, 2021
1 parent 380345b commit e9bcc3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/pages/queries/components/QueryPageHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit e9bcc3c

Please sign in to comment.