The admin menu is shown in the management section if the user who logged in is an admin

This commit is contained in:
iagirre
2017-11-17 11:41:44 +01:00
committed by Angel Perez
parent 81d8b9b9ed
commit 7a7ae5fa2e
4 changed files with 19 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
<% if show_admin_menu? %>
<% if show_admin_menu?(current_user) %>
<li class="has-submenu">
<%= link_to t("layouts.header.administration_menu"), "#", rel: "nofollow", class: "hide-for-small-only" %>
<ul class="submenu menu vertical" data-submenu>