We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e34a211 commit 1897e2aCopy full SHA for 1897e2a
app/views/content/display/attribute_value/_link.html.erb
@@ -9,8 +9,12 @@
9
on js-load-page-name to fetch & load in post-page-load if the content isn't ours.
10
%>
11
<%
12
- content = @current_user_content.fetch(klass, []).detect do |page|
13
- page.page_type === klass && page.id === id.to_i
+ content = if user_signed_in?
+ @current_user_content.fetch(klass, []).detect do |page|
14
+ page.page_type === klass && page.id === id.to_i
15
+ end
16
+ else
17
+ nil
18
end
19
20
0 commit comments