From f7eefb983fd9e820eab675924e5a1e075672a91c Mon Sep 17 00:00:00 2001 From: gustavomm19 Date: Fri, 27 Dec 2024 16:32:43 +0000 Subject: [PATCH] add validation --- src/js_modules/Cohort/Header.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js_modules/Cohort/Header.jsx b/src/js_modules/Cohort/Header.jsx index a4899829b..4799229a7 100644 --- a/src/js_modules/Cohort/Header.jsx +++ b/src/js_modules/Cohort/Header.jsx @@ -165,7 +165,9 @@ function Header() { borderRadius="30px" /> )} - setShowStudentsModal(false)} /> + {cohortSession && cohortSession.cohort_role !== 'STUDENT' && ( + setShowStudentsModal(false)} /> + )} ); }