diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index c716b02..389e901 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -36,11 +36,10 @@ <%= link_to_unless_current 'Browse Beers', beers_path -%>
<%= link_to_unless_current 'Beverage Styles', styles_path -%>
<%= link_to_unless_current 'Browse Breweries', breweries_path -%>
- <%= link_to_unless_current 'Discussions', discussions_path -%>
<%= link_to_unless_current 'Peoples', peoples_path -%>
- <%= link_to_unless_current 'Roles', roles_path -%>
+ <% if has_permission_for_action?(:index, :roles) -%><%= link_to_unless_current 'Roles', roles_path -%>
<% end -%> <%= link_to_unless_current 'Help With BarleySodas', :controller => 'help', :action => 'index' -%>
- <% unless logged_in? -%><%= link_to_unless_current 'Login', new_session_path -%><% else -%><%= link_to 'Logout', session_path(:id => session[:people_title]), :method => :delete -%><% end %> + <% unless logged_in? -%><%= link_to_unless_current 'Login', new_session_path -%><% else -%><%= link_to "Logout #{session[:people_title]}", session_path(:id => session[:people_title]), :method => :delete -%><% end %>
<%= yield :sidebar %>