diff --git a/lib/memex/accounts.ex b/lib/memex/accounts.ex index e9a9e14..515ca3a 100644 --- a/lib/memex/accounts.ex +++ b/lib/memex/accounts.ex @@ -422,16 +422,16 @@ defmodule Memex.Accounts do ## Examples - iex> is_already_admin?(%User{role: :admin}) + iex> already_admin?(%User{role: :admin}) true - iex> is_already_admin?(%User{}) + iex> already_admin?(%User{}) false """ - @spec is_already_admin?(User.t() | nil) :: boolean() - def is_already_admin?(%User{role: :admin}), do: true - def is_already_admin?(_invalid_user), do: false + @spec already_admin?(User.t() | nil) :: boolean() + def already_admin?(%User{role: :admin}), do: true + def already_admin?(_invalid_user), do: false ## Confirmation diff --git a/lib/memex_web/components/core_components/topbar.html.heex b/lib/memex_web/components/core_components/topbar.html.heex index be2fb56..f2adbb4 100644 --- a/lib/memex_web/components/core_components/topbar.html.heex +++ b/lib/memex_web/components/core_components/topbar.html.heex @@ -38,7 +38,7 @@
  • <%= if @current_user do %> -
  • Accounts.is_already_admin?()} class="mx-2 my-1"> +
  • Accounts.already_admin?()} class="mx-2 my-1"> <.link navigate={~p"/invites"} class="text-primary-400 hover:underline"> <%= gettext("invites") %>