Directly used model reference to current user instead of ApplicationController helper so view specs for show are also green

pull/6827/head
Sebastian Schuster 12 years ago
parent abb4b0f055
commit 304e24477a
  1. 4
      app/views/rb_taskboards/show.html.erb

@ -49,7 +49,7 @@
<table id="impediments" class="board" cellspacing="0">
<tr>
<td><div class="label_sprint_impediments"><%= l(:label_sprint_impediments) %></div></td>
<% if current_user.allowed_to?(:create_impediments, @project) %>
<% if User.current.allowed_to?(:create_impediments, @project) %>
<td class ="add_new clickable">+</td>
<% else %>
<td class ="add_new"></td>
@ -87,7 +87,7 @@
</div>
</div>
</td>
<% if current_user.allowed_to?(:create_tasks, @project) %>
<% if User.current.allowed_to?(:create_tasks, @project) %>
<td class ="add_new clickable">+</td>
<% else %>
<td class ="add_new"></td>

Loading…
Cancel
Save