Skip to content

Commit 593f369

Browse files
committed
include groups in .../files?show_all_contexts=1
get_all_pertinent_contexts takes one parameter, include_groups, which defaults to false. fixes #5777 Change-Id: I412249a180a4325b59ee69020f675f015059c191 Reviewed-on: https://gerrit.instructure.com/5880 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Brian Whitmer <brian@instructure.com>
1 parent 0cd325b commit 593f369

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/files_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def full_index
9595
add_crumb(t('#crumbs.files', "Files"), named_context_url(@context, :context_files_url))
9696
@contexts = [@context]
9797
if !@context.is_a?(User) || (@context == @current_user && params[:show_all_contexts])
98-
get_all_pertinent_contexts
98+
get_all_pertinent_contexts(true)
9999
end
100100
@too_many_contexts = @contexts.length > 15
101101
@contexts = @contexts[0,15]

0 commit comments

Comments
 (0)