Update Navbar partial to show the Server menu item for moderators.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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/"}
|
||||
|
||||
Reference in New Issue
Block a user