Skip to content
Snippets Groups Projects
Verified Commit 649d2fff authored by Dorian Koch's avatar Dorian Koch
Browse files

Fix show only public courses

parent 6c0ba3c3
Branches
Tags
No related merge requests found
Pipeline #6370 passed
......@@ -103,10 +103,11 @@ function CourseGroupCard({
{g.list.flatMap((c) => {
if (
onlyShowPublicCourses &&
!c.default_authentication_methods?.includes("public")
(!c.default_authentication_methods?.includes("public") ||
c.is_visible === false)
) {
// I chose not to check c.is_visible or c.is_listed here because
// it may be useful for videoag admins to check which courses are falsely set to public
// I chose not to check c.is_listed here because
// it may be useful for videoag admins to check which courses are falsely set to visible and public
return [];
}
return [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment