From 36019f2963528e9f486f6454104382f96bc9fd20 Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Sun, 24 Apr 2022 14:41:51 +0200 Subject: [PATCH] Uncomment permission rules --- src/client/src/AdminsOverview.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/client/src/AdminsOverview.js b/src/client/src/AdminsOverview.js index 59ec91b..ff13fbf 100644 --- a/src/client/src/AdminsOverview.js +++ b/src/client/src/AdminsOverview.js @@ -165,17 +165,17 @@ export default function Users(props) { getUsers() }, []); - // if (!props.user.isLoggedIn) { return ; } - // if (!props.user.isManager) { - // return (<> - // - // - //
- // You do not have permission to view this page. If you believe this is incorrect, please contact a manager. - //
- //
- // ); - // } + if (!props.user.isLoggedIn) { return ; } + if (!props.user.isManager) { + return (<> + + +
+ You do not have permission to view this page. If you believe this is incorrect, please contact a manager. +
+
+ ); + } return ( <>