Merge pull request #4567 from pangeachat/filter-non-public
Filter out courses from search if they aren't public
This commit is contained in:
commit
fab757a0cf
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