From 04ae25f6b0ce4c9a0d453864bef1cac27aa5b70a 2009-10-22 17:42:17 From: Jean-Philippe Lang Date: 2009-10-22 17:42:17 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 --- diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml index 8964927..019a14d 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 %>