Skip to content

Commit 5b6ecfb

Browse files
committed
Hide hidden courses from the main courses view
1 parent bc66af2 commit 5b6ecfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/controllers/organizations_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def show
3636
.courses
3737
.ongoing
3838
.enabled
39+
.where(hidden: false)
3940
.order(ordering)
4041
.select { |c| c.visible_to?(current_user) }
4142
.to_a

0 commit comments

Comments
 (0)