Skip to content

Commit fae6041

Browse files
author
Theresa
committed
User cannot see collections in navbar
1 parent ae2e9c8 commit fae6041

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/layouts/application.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
<%= menu_group do %>
1616
<% if current_user %>
1717
<%= menu_item 'Exercises', exercises_path %>
18-
<%= menu_item 'Collections', collections_path %>
18+
<% unless current_user.role === 'user'%>
19+
<%= menu_item 'Collections', collections_path %>
20+
<% end %>
1921
<%= menu_divider %>
2022
<% if current_user.role === 'admin' %>
2123
<%= drop_down 'Admin Panel' do%>

0 commit comments

Comments
 (0)