From b3c79e095b898f1c6ab199049d6cce245c2c4a68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20B=C3=B6hm?= Date: Wed, 2 Oct 2024 14:24:35 +0200 Subject: [PATCH] Show admin navbar only for admins --- app/views/layouts/_header.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index d29d679..fe723f3 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -13,12 +13,14 @@ <%= link_to "Profil", profile_path %> - <% if (current_user.admin? || current_user.operator?) %> + <% if current_user.admin? %>
  • + <% end %> + <% if current_user.operator? %>