<% # Clients of this partial must supply the following variables: # thread # user %> <% if thread.can_be_read_by?(user) %> <% end %>