From a77e412cb030d92992e5e541879f9a0662f7073b Mon Sep 17 00:00:00 2001 From: Jules Laplace 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(
  • Goal: {user.goal} cal
  • ) switch (currentUser.role) { case 'admin': -// if (this.props.user.id !== this.props.currentUser.id) { -// items.push(
  • Stop viewing
  • ) -// } + // if (this.props.user.id !== this.props.currentUser.id) { + // items.push(
  • Stop viewing
  • ) + // } items.push(
  • Users
  • ) items.push(
  • Meals
  • ) break -- cgit v1.2.3-70-g09d2