Skip to content

Commit

Permalink
allow users with course status user access to videos
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Oct 6, 2023
1 parent 50dd37d commit 9fff694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/course/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
)
) {
$role = 'Instructor';
} else if ($GLOBALS['perm']->have_studip_perm('autor', $course_id, $current_user_id)) {
} else if ($GLOBALS['perm']->have_studip_perm('user', $course_id, $current_user_id)) {
$role = 'Learner';
}

Expand Down Expand Up @@ -101,7 +101,7 @@
&& (($controller->isStudyGroup() && $controller->isStudentUploadEnabled() || !$controller->isStudyGroup()))
) {
$role = 'Instructor';
} else if ($GLOBALS['perm']->have_studip_perm('autor', $course_id, $current_user_id)) {
} else if ($GLOBALS['perm']->have_studip_perm('user', $course_id, $current_user_id)) {
$role = 'Learner';
}

Expand Down

0 comments on commit 9fff694

Please sign in to comment.