diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-03-20 05:17:29 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-03-20 05:17:29 +0100 |
| commit | a77e412cb030d92992e5e541879f9a0662f7073b (patch) | |
| tree | 4b906b56792c7f99eb9c3a62c5a82b3c50244351 /client/components/Menu.jsx | |
| parent | a19e562b3ca8bc7a2c18002dc535b798916bc82c (diff) | |
admins and managers can delete users
Diffstat (limited to 'client/components/Menu.jsx')
| -rw-r--r-- | client/components/Menu.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/Menu.jsx b/client/components/Menu.jsx index 452c395..11ec938 100644 --- a/client/components/Menu.jsx +++ b/client/components/Menu.jsx @@ -39,9 +39,9 @@ export default class Menu extends React.Component { items.push( <li key='goal' onMouseDown={this.setGoal}><a href='#'>Goal</a>: {user.goal} cal</li> ) switch (currentUser.role) { case 'admin': -// if (this.props.user.id !== this.props.currentUser.id) { -// items.push( <li key='resetUser'><a href='#' onClick={this.resetUser}>Stop viewing</a></li> ) -// } + // if (this.props.user.id !== this.props.currentUser.id) { + // items.push( <li key='resetUser'><a href='#' onClick={this.resetUser}>Stop viewing</a></li> ) + // } items.push( <li key='userlist'><a href='#' onClick={this.props.toggleMode}>Users</a></li> ) items.push( <li key='meallist'><a href='#' onClick={this.props.toggleMode}>Meals</a></li> ) break |
