From 304e24477a98a1101ec7136dd311d664567ca228 Mon Sep 17 00:00:00 2001 From: Sebastian Schuster Date: Fri, 26 Apr 2013 11:16:42 +0200 Subject: [PATCH] Directly used model reference to current user instead of ApplicationController helper so view specs for show are also green --- app/views/rb_taskboards/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/rb_taskboards/show.html.erb b/app/views/rb_taskboards/show.html.erb index 91db4beccd..011d99bfcb 100644 --- a/app/views/rb_taskboards/show.html.erb +++ b/app/views/rb_taskboards/show.html.erb @@ -49,7 +49,7 @@ - <% if current_user.allowed_to?(:create_impediments, @project) %> + <% if User.current.allowed_to?(:create_impediments, @project) %> <% else %> @@ -87,7 +87,7 @@ - <% if current_user.allowed_to?(:create_tasks, @project) %> + <% if User.current.allowed_to?(:create_tasks, @project) %> <% else %>
<%= l(:label_sprint_impediments) %>
+ +