Skip to content

Commit

Permalink
Enable content creation for teacher
Browse files Browse the repository at this point in the history
  • Loading branch information
ousamazemzami committed Nov 5, 2024
1 parent 72bc7b8 commit e365343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/contenu-libre/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable no-console */
import { useRouter } from 'next/router';
import React from 'react';

Expand All @@ -16,7 +17,7 @@ const ContenuLibre = () => {
const { user } = React.useContext(UserContext);
const { selectedPhase } = React.useContext(VillageContext);

const isModerator = user !== null && user.type <= UserType.MEDIATOR;
const isModerator = user !== null && user.type <= UserType.TEACHER;

const onNext = () => {
const success = createNewActivity(ActivityType.CONTENU_LIBRE, selectedPhase);
Expand Down

0 comments on commit e365343

Please sign in to comment.