mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Don't show private content (e.g. private notes) to other users when content is shared
This commit is contained in:
parent
cf9b4b82fb
commit
034cf1198b
@ -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>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user