diff --git a/lib/decentralised_book_index_web/components/core_components.ex b/lib/decentralised_book_index_web/components/core_components.ex index 30e1a47..0dafe96 100644 --- a/lib/decentralised_book_index_web/components/core_components.ex +++ b/lib/decentralised_book_index_web/components/core_components.ex @@ -546,8 +546,8 @@ defmodule DecentralisedBookIndexWeb.CoreComponents do ~H"""
{col[:label]} | @@ -560,7 +560,11 @@ defmodule DecentralisedBookIndexWeb.CoreComponents do phx-update={match?(%Phoenix.LiveView.LiveStream{}, @rows) && "stream"} class="relative divide-zinc-100 text-sm leading-6 text-zinc-700" > - |
---|---|
+
<%= if @current_user != nil and Role.can_moderate?(@current_user.role) and is_nil(@author.dbi_server) do %>
|