<% if current_user %>
  <% if current_user.administrator? %>
    <li>
      <%= link_to t("layouts.header.administration"), admin_root_path %>
    </li>
  <% end %>

  <% if current_user.moderator? || current_user.administrator? %>
    <li>
      <%= link_to t("layouts.header.moderation"), moderation_root_path %>
    </li>
  <% end %>

  <% if current_user.valuator? || current_user.administrator?  %>
    <li>
      <%= link_to t("layouts.header.valuation"), valuation_root_path %>
    </li>
  <% end %>
<% end %>

<% if current_user %>
  <% if current_user.administrator? %>
    <li>
      <%= link_to t("layouts.header.administration"), admin_root_path %>
    </li>
  <% end %>

  <% if current_user.moderator? || current_user.administrator? %>
    <li>
      <%= link_to t("layouts.header.moderation"), moderation_root_path %>
    </li>
  <% end %>

  <% if feature?(:spending_proposals) && (current_user.valuator? || current_user.administrator?) %>
    <li>
      <%= link_to t("layouts.header.valuation"), valuation_root_path %>
    </li>
  <% end %>
<% end %>

Check if spending_proposals is enabled to show 'valuation' link
Check if spending_proposals is enabled to show 'valuation' link

The link was broken when Spending Proposals is disabled from administration.

The /valuation link points to `Valuation::SpendingProposalsController` which has a `feature_flag :spending_proposals` flag.