Skip to content

Commit 8e206c2

Browse files
committed
TaskSolution: fix visibility for course mentor
1 parent 6a482b1 commit 8e206c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hwproj.front/src/components/Solutions/TaskSolutionsPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ const TaskSolutionsPage: FC<RouteComponentProps<ITaskSolutionsProps>> = (props)
6161
if (taskSolution.isLoaded) {
6262
if (
6363
!ApiSingleton.authService.isLoggedIn() ||
64-
taskSolution.course.mentorIds!.includes(userId!) ||
6564
!taskSolution.course.courseMates!.some(
6665
(cm) => cm.isAccepted! && cm.studentId == userId
67-
)
66+
) ||
67+
!taskSolution.course.mentorIds!.includes(userId!)
6868
)
6969
{
7070
return (

0 commit comments

Comments
 (0)