mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
Don't error on anonymous users viewing content :|
This commit is contained in:
parent
28b01532e4
commit
619d034eba
@ -31,7 +31,7 @@ class ContentController < ApplicationController
|
||||
'content_type': content_type.name,
|
||||
'content_owner': current_user.present? && current_user.id == @content.user_id,
|
||||
'logged_in_user': current_user.present?
|
||||
})
|
||||
}) if current_user
|
||||
|
||||
respond_to do |format|
|
||||
format.html { render 'content/show', locals: { content: @content } }
|
||||
|
||||
Loading…
Reference in New Issue
Block a user