Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c716d5e

Browse files
authoredJan 20, 2025··
Merge pull request #3450 from manyfold3d/fix-settings-icon-for-members
Don't show site settings link to members
2 parents e842b6c + dbcefeb commit c716d5e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎app/views/application/_navbar.html.erb

+5-3
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@
6969
<%= nav_link "activity", t(".activity"), activity_path, text_style: "d-lg-none" %>
7070
</li>
7171
<% end %>
72-
<li class="nav-item">
73-
<%= nav_link "gear", t(".settings"), settings_path, text_style: "d-lg-none" %>
74-
</li>
72+
<% if policy(:settings).index? %>
73+
<li class="nav-item">
74+
<%= nav_link "gear", t(".settings"), settings_path, text_style: "d-lg-none" %>
75+
</li>
76+
<% end %>
7577
<% end %>
7678
<li class="nav-item">
7779
<%= form_with url: models_path, method: :get, role: "search" do |f| %>

0 commit comments

Comments
 (0)
Please sign in to comment.