Method: Elabs::ContentHelper#user_is_author_of

Defined in:
app/helpers/elabs/content_helper.rb

#user_is_author_of(entity) ⇒ Object



7
8
9
# File 'app/helpers/elabs/content_helper.rb', line 7

def user_is_author_of(entity)
  current_user&.id && entity.user_id == current_user.id
end