Don't show private content (e.g. private notes) to other users when content is shared

This commit is contained in:
Andrew Brown 2016-08-18 17:56:13 -05:00
parent cf9b4b82fb
commit 034cf1198b

View File

@ -20,6 +20,7 @@
<% content.class.attribute_categories.each do |category, data| %>
<div id="<%= category %>" class="row">
<% data[:attributes].each do |attribute| %>
<% next if attribute.start_with?("private") && @content.user != current_user %>
<div class="row">
<div class="col s6 m6 l6 right-align flow-text grey-text"><%= attribute.humanize.capitalize %></div>