From b344456b6f5fbe12de5b4817abfd0a4a6dacf5a2 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 12 Apr 2011 19:37:56 +0000 Subject: [PATCH] Code cleanup. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5444 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_relations.rhtml | 2 +- app/views/issues/show.rhtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/issues/_relations.rhtml b/app/views/issues/_relations.rhtml index 59638a97a..19ae08b04 100644 --- a/app/views/issues/_relations.rhtml +++ b/app/views/issues/_relations.rhtml @@ -1,5 +1,5 @@
-<% if authorize_for('issue_relations', 'new') %> +<% if User.current.allowed_to?(:manage_issue_relations, @project) %> <%= toggle_link l(:button_add), 'new-relation-form', {:focus => 'relation_issue_to_id'} %> <% end %>
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 7d1871619..166c85e0d 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -73,7 +73,7 @@ <% end %> -<% if authorize_for('issue_relations', 'new') || @issue.relations.present? %> +<% if @relations.present? || User.current.allowed_to?(:manage_issue_relations, @project) %>
<%= render :partial => 'relations' %>