diff --git a/app/views/content/display/attribute_value/_link.html.erb b/app/views/content/display/attribute_value/_link.html.erb index 28b5be08..94e62602 100644 --- a/app/views/content/display/attribute_value/_link.html.erb +++ b/app/views/content/display/attribute_value/_link.html.erb @@ -9,8 +9,12 @@ on js-load-page-name to fetch & load in post-page-load if the content isn't ours. %> <% - content = @current_user_content.fetch(klass, []).detect do |page| - page.page_type === klass && page.id === id.to_i + content = if user_signed_in? + @current_user_content.fetch(klass, []).detect do |page| + page.page_type === klass && page.id === id.to_i + end + else + nil end %>