philomena/lib/philomena_web/views/image/comment_view.ex

8 lines
169 B
Elixir
Raw Permalink Normal View History

2019-11-12 03:38:51 +01:00
defmodule PhilomenaWeb.Image.CommentView do
use PhilomenaWeb, :view
def anonymous_by_default?(conn) do
conn.assigns.current_user.anonymous_by_default
end
2019-11-12 03:38:51 +01:00
end