diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml index 119436d5d..0dc3fe358 100644 --- a/app/views/news/show.rhtml +++ b/app/views/news/show.rhtml @@ -1,10 +1,14 @@
-<%= link_to_if_authorized l(:button_edit), - edit_news_path(@news), - :class => 'icon icon-edit', - :accesskey => accesskey(:edit), - :onclick => 'Element.show("edit-news"); return false;' %> -<%= link_to_if_authorized l(:button_delete), news_path(@news), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %> +<%= link_to(l(:button_edit), + edit_news_path(@news), + :class => 'icon icon-edit', + :accesskey => accesskey(:edit), + :onclick => 'Element.show("edit-news"); return false;') if User.current.allowed_to?(:manage_news, @project) %> +<%= link_to(l(:button_delete), + news_path(@news), + :confirm => l(:text_are_you_sure), + :method => :delete, + :class => 'icon icon-del') if User.current.allowed_to?(:manage_news, @project) %>

<%= avatar(@news.author, :size => "24") %><%=h @news.title %>