From bce8618c30b51be2156991d6a8b872841c87e847 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Thu, 15 Mar 2012 00:51:22 +0600 Subject: [PATCH] [refs #194] removed reduntant check --- app/views/issues/_manage_sidebar.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/issues/_manage_sidebar.html.haml b/app/views/issues/_manage_sidebar.html.haml index 581d281b5..ce7969ed6 100644 --- a/app/views/issues/_manage_sidebar.html.haml +++ b/app/views/issues/_manage_sidebar.html.haml @@ -1,5 +1,5 @@ -content_for :sidebar do - - can_manage = can?(:update, @issue) && @issue.persisted? || can?(:create, @project.issues.new) && @issue.new_record? + - can_manage = can?(:update, @issue) && @issue.persisted? || @issue.new_record? - if @issue.persisted? .bordered.nopadding %h3=t('activerecord.attributes.issue.status')