philomena/lib/philomena_web/views/topic_view.ex

8 lines
161 B
Elixir
Raw Permalink Normal View History

2019-10-06 23:31:48 +02:00
defmodule PhilomenaWeb.TopicView do
use PhilomenaWeb, :view
def anonymous_by_default?(conn) do
conn.assigns.current_user.anonymous_by_default
end
2019-10-06 23:31:48 +02:00
end