Removed access to upload/add users from the teachers
This commit is contained in:
@@ -63,8 +63,12 @@ export default function Admin() {
|
|||||||
<Layout user={user} className="gap-6">
|
<Layout user={user} className="gap-6">
|
||||||
<section className="w-full flex -md:flex-col -xl:gap-2 gap-8 justify-between">
|
<section className="w-full flex -md:flex-col -xl:gap-2 gap-8 justify-between">
|
||||||
<ExamLoader />
|
<ExamLoader />
|
||||||
|
{user.type !== "teacher" && (
|
||||||
|
<>
|
||||||
<CodeGenerator user={user} />
|
<CodeGenerator user={user} />
|
||||||
<BatchCodeGenerator user={user} />
|
<BatchCodeGenerator user={user} />
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</section>
|
</section>
|
||||||
<section className="w-full">
|
<section className="w-full">
|
||||||
<Lists user={user} />
|
<Lists user={user} />
|
||||||
|
|||||||
Reference in New Issue
Block a user