Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
videoag
frontend
Commits
649d2fff
Verified
Commit
649d2fff
authored
10 months ago
by
Dorian Koch
Browse files
Options
Downloads
Patches
Plain Diff
Fix show only public courses
parent
6c0ba3c3
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#6370
passed
10 months ago
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/pages/courses.tsx
+4
-3
4 additions, 3 deletions
src/pages/courses.tsx
with
4 additions
and
3 deletions
src/pages/courses.tsx
+
4
−
3
View file @
649d2fff
...
...
@@ -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
[
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment