mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-17 22:47:59 +01:00
10 lines
258 B
Elixir
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
|