Uncomment permission rules

This commit is contained in:
Felix Albrigtsen 2022-04-24 14:41:51 +02:00
parent 7dd067505e
commit 36019f2963
1 changed files with 11 additions and 11 deletions

View File

@ -165,17 +165,17 @@ export default function Users(props) {
getUsers() getUsers()
}, []); }, []);
// if (!props.user.isLoggedIn) { return <LoginPage user={props.user} />; } if (!props.user.isLoggedIn) { return <LoginPage user={props.user} />; }
// if (!props.user.isManager) { if (!props.user.isManager) {
// return (<> return (<>
// <Appbar user={props.user} pageTitle="Admins" /> <Appbar user={props.user} pageTitle="Admins" />
// <Paper sx={{minHeight: "30vh", width:"90vw", margin:"10px auto", padding: "25px"}} component={Stack} direction="column" justifycontent="center"> <Paper sx={{minHeight: "30vh", width:"90vw", margin:"10px auto", padding: "25px"}} component={Stack} direction="column" justifycontent="center">
// <div align="center"> <div align="center">
// <Typography variant="h4">You do not have permission to view this page. If you believe this is incorrect, please contact a manager.</Typography> <Typography variant="h4">You do not have permission to view this page. If you believe this is incorrect, please contact a manager.</Typography>
// </div> </div>
// </Paper> </Paper>
// </>); </>);
// } }
return ( return (
<> <>