Created a simple permissions system for users

This commit is contained in:
Tiago Ribeiro
2023-05-17 16:32:52 +01:00
parent 4b5c99c654
commit f579b244bf
7 changed files with 12 additions and 10 deletions

View File

@@ -190,7 +190,7 @@ export default function Page() {
<ToastContainer />
{user && (
<main className="w-full h-full min-h-[100vh] flex flex-col items-center bg-neutral-100 text-black pb-4 gap-4">
<Navbar profilePicture={user.profilePicture} timer={exam ? timer : undefined} />
<Navbar userType={user.type} profilePicture={user.profilePicture} timer={exam ? timer : undefined} />
{renderScreen()}
</main>
)}