Permalink
Browse files

Honor user.Admin

  • Loading branch information...
jdavid committed Nov 15, 2017
1 parent dcd3044 commit b7e261fa991167ad55edd140f1bae10bbb7744ed
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/components/wrappers/walkthroughplay.js
@@ -285,7 +285,8 @@ class WalkthroughPlay extends React.Component {
}
isEditable() {
return this.props.walkthrough.uid !== "" && this.props.walkthrough.uid === this.props.currentUser.UUID;
const user = this.props.currentUser;
return this.props.walkthrough.uid !== "" && (user.Admin || this.props.walkthrough.uid === user.UUID);
}
render() {

0 comments on commit b7e261f

Please sign in to comment.