Skip to content
Snippets Groups Projects
Unverified Commit 5efa6d5d authored by Tom Robinson's avatar Tom Robinson
Browse files

Only show quesiton edit buttons if the user can edit it. Resolves #3869

parent 066997d5
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@ export default class QueryHeader extends Component {
}
// persistence buttons on saved cards
if (!isNew) {
if (!isNew && card.can_write) {
if (!isEditing) {
if (this.state.recentlySaved) {
// existing card + not editing + recently saved = save confirmation
......@@ -219,7 +219,6 @@ export default class QueryHeader extends Component {
</span>
</button>
]);
} else {
// edit button
buttonSections.push([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment