mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
only let users favorite their own pages
This commit is contained in:
parent
68dfd907ee
commit
5af74830f3
@ -8,7 +8,7 @@
|
||||
end
|
||||
%>
|
||||
|
||||
<% if content.persisted? %>
|
||||
<% if content.persisted? && user_signed_in? && content.user == current_user %>
|
||||
<i class="material-icons right yellow-text favorite-button tooltipped"
|
||||
data-tooltip="<%= action %> this page"
|
||||
data-content-id="<%= content.id %>"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user