philomena/lib/philomena_web/views/profile/commission_view.ex
2019-12-04 11:35:06 -05:00

10 lines
258 B
Elixir

defmodule PhilomenaWeb.Profile.CommissionView do
use PhilomenaWeb, :view
alias Philomena.Commissions.Commission
def categories, do: Commission.categories()
def current?(%{id: id}, %{id: id}), do: true
def current?(_user1, _user2), do: false
end