Skip to content
Snippets Groups Projects
Commit cc4d006a authored by Allen Gilliland's avatar Allen Gilliland
Browse files

Merge pull request #496 from metabase/fix_save_button_visibility

don't show the "edit" or "save" buttons when the user does not have t…
parents 191c8a3b fd9f57bc
Branches
Tags
No related merge requests found
......@@ -147,7 +147,7 @@ export default React.createClass({
var title = this.props.card.name || "What would you like to know?";
var editButton;
if (!this.cardIsNew()) {
if (!this.cardIsNew() && this.props.card.is_creator) {
editButton = (
<Saver
card={this.props.card}
......@@ -172,7 +172,7 @@ export default React.createClass({
canDelete={false}
/>
);
} else if (this.cardIsDirty() || this.state.recentlySaved) {
} else if ((this.cardIsDirty() || this.state.recentlySaved) && this.props.card.is_creator) {
// for existing cards we render a very simply ActionButton
saveButton = (
<ActionButton
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment