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

don't show the "edit" or "save" buttons when the user does not have the...

don't show the "edit" or "save" buttons when the user does not have the permissions to save the card anyways.
parent 65262190
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