Skip to content

Commit 3f8cc41

Browse files
committed
Put support console link view under country policy
1 parent 0a2c5ac commit 3f8cc41

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/views/shared/_header.html.erb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,11 @@
1717
<% header.with_navigation_item(text: "Suitability records", href: main_app.assessor_interface_suitability_records_path) %>
1818
<% end %>
1919

20-
<% if AssessorInterface::StaffPolicy.new(current_staff, Staff).index? %>
20+
<% if SupportInterface::CountryPolicy.new(current_staff, Country).index? %>
2121
<% header.with_navigation_item(text: "Support console", href: main_app.support_interface_root_path) %>
22+
<% end %>
23+
24+
<% if AssessorInterface::StaffPolicy.new(current_staff, Staff).index? %>
2225
<% header.with_navigation_item(text: "Manage access", href: main_app.assessor_interface_staff_index_path) %>
2326
<% end %>
2427
<% header.with_navigation_item(text: "Sign out", href: main_app.destroy_staff_session_path) %>

0 commit comments

Comments
 (0)