Update Navbar partial to show the Server menu item for moderators.
continuous-integration/drone/push Build is passing Details

dev
KKlochko 1 month ago
parent 80e99b7de8
commit 99188454e9

@ -106,7 +106,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyPartials.Navbar do
</a>
</li>
<% end %>
<%= if @current_user != nil and Role.can_administrate?(@current_user.role) do %>
<%= if @current_user != nil and Role.can_moderate?(@current_user.role) do %>
<li>
<a
href={~p"/servers/"}

Loading…
Cancel
Save