From a77e412cb030d92992e5e541879f9a0662f7073b Mon Sep 17 00:00:00 2001
From: Jules Laplace <jules@okfoc.us>
Date: Mon, 20 Mar 2017 05:17:29 +0100
Subject: admins and managers can delete users

---
 client/components/Menu.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'client/components/Menu.jsx')

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
-- 
cgit v1.2.3-70-g09d2

