defmodule JumubaseWeb.AuthHelpers do
  @doc """
  Returns whether the given user is an admin.
  """
  def admin?(%User{role: role}), do: role === "admin"
end

defmodule JumubaseWeb.AuthHelpers do
  alias Jumubase.Accounts.User

  @doc """
  Returns whether the given user is an admin.
  """
  def admin?(%User{role: role}), do: role === "admin"
end

Fix missing alias that caused crash
Fix missing alias that caused crash

richeterre/jumubase-phoenix,richeterre/jumubase-phoenix