Skip to content

Commit c434405

Browse files
author
Michael Nomitch
committed
fix roster user partial rendering
test plan: - make a discussion topic - as a student make a comment on it - go to users/:id_of_student_who_commented - under Recent Messages the comment in the discussion topic properly renders Change-Id: Ib8dbf96690846987e6183b75580d7c90c54a1191 Reviewed-on: https://gerrit.instructure.com/43596 Reviewed-by: Cameron Sutter <csutter@instructure.com> Product-Review: Simon Williams <simon@instructure.com> QA-Review: Sean Lewis <slewis@instructure.com> Tested-by: Jenkins <jenkins@instructure.com>
1 parent d9a000d commit c434405

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/context/roster_user.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
<%= t('no_messages', "No Messages") if @messages.empty? %>
167167
<% @messages[0,10].each do |message| %>
168168
<% if message.is_a?(DiscussionEntry) %>
169-
<%= render :partial => 'discussion_topics/entry', :object => message, :locals => {:out_of_context => true, :show_context => true} %>
169+
<%= render :partial => 'discussion_topics/entry', :object => message, :locals => {:out_of_context => true, :show_context => true, :assignment_visible_to_user => message.discussion_topic.visible_for?(@current_user)} %>
170170
<% end %>
171171
<% end %>
172172

0 commit comments

Comments
 (0)