mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
fix for logged-out users
This commit is contained in:
parent
e34a211813
commit
1897e2a511
@ -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
|
||||
%>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user