diff --git a/src/CoreBundle/Security/Authorization/Voter/CourseVoter.php b/src/CoreBundle/Security/Authorization/Voter/CourseVoter.php index 56f67a21b6..4783b7f260 100644 --- a/src/CoreBundle/Security/Authorization/Voter/CourseVoter.php +++ b/src/CoreBundle/Security/Authorization/Voter/CourseVoter.php @@ -81,7 +81,7 @@ class CourseVoter extends Voter } // If user is logged in and is open platform, allow access. - if (Course::OPEN_PLATFORM === $course->getVisibility()) { + if (in_array($course->getVisibility(), [Course::OPEN_PLATFORM, Course::REGISTERED])) { $user->addRole(ResourceNodeVoter::ROLE_CURRENT_COURSE_STUDENT); if ($course->hasUserAsTeacher($user)) {