]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_header.html.erb
Added a few tests
[rails.git] / app / views / layouts / _header.html.erb
index 3187d0b27f6ee7b029716d9f9810bdc43685e623..29216de72e27ef128742bcb7ee46dbeb9442e4e2 100644 (file)
@@ -38,7 +38,7 @@
   </nav>
   <nav class='secondary'>
     <ul>
-      <% if @user and @user.administrator? %>
+      <% if @user and ( @user.administrator? or @user.moderator? ) %>
         <li class="compact-hide <%= current_page_class(issues_path) %>"><%= link_to t('layouts.issues'), issues_path %></li>
       <% end %>
       <li class="compact-hide <%= current_page_class(traces_path) %>"><%= link_to t('layouts.gps_traces'), traces_path %></li>