From 04ae25f6b0ce4c9a0d453864bef1cac27aa5b70a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 22 Oct 2009 17:42:17 +0000 Subject: [PATCH] Do not render hidden news edit form if user is not allowed to edit (closes #4068). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2954 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/news/show.rhtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml index 89649273..019a14df 100644 --- a/app/views/news/show.rhtml +++ b/app/views/news/show.rhtml @@ -9,6 +9,7 @@

<%=h @news.title %>

+<% if authorize_for('news', 'edit') %> +<% end %>

<% unless @news.summary.blank? %><%=h @news.summary %>
<% end %> <%= authoring @news.created_on, @news.author %>