Skip to content

Commit

Permalink
respect permissions in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
EgbertW committed May 23, 2014
1 parent 49323a0 commit 9a908d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/hooks/_rmp_add_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<% if User.current.allowed_to?(:plan_issues, @project) %>
<h3><%= l(:planning_head_planning) %></h3>
<p>
<%= link_to l(:planning_label_planning), rmp_gshow_planning_path %> |
<%= link_to l(:planning_label_planning), rmp_show_planning_path(@project) %> |
</p>
<% else %>
<% elsif @project.nil? %>
<h3><%= l(:planning_head_planning) %></h3>
<p>
<%= link_to l(:planning_label_planning), rmp_gshow_planning_path %>
Expand Down

0 comments on commit 9a908d8

Please sign in to comment.