Filter out courses from search if they aren't public
This commit is contained in:
parent
d4696311b9
commit
5b272a4bc4
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ class PublicCoursesPageState extends State<PublicCoursesPage> {
|
|||
r.id == c.room.roomId &&
|
||||
r.membership == Membership.join,
|
||||
) &&
|
||||
coursePlans.containsKey(c.courseId),
|
||||
coursePlans.containsKey(c.courseId) &&
|
||||
c.room.joinRule == 'public',
|
||||
)
|
||||
.toList();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue