summaryrefslogtreecommitdiffstats
path: root/app/views/news/show.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/news/show.rhtml')
-rw-r--r--app/views/news/show.rhtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml
index 851ef3f75..9b8f2510e 100644
--- a/app/views/news/show.rhtml
+++ b/app/views/news/show.rhtml
@@ -47,9 +47,9 @@
<% end if @comments.any? %>
</div>
-<% if authorize_for 'news', 'add_comment' %>
+<% if authorize_for 'comments', 'create' %>
<p><%= toggle_link l(:label_comment_add), "add_comment_form", :focus => "comment_comments" %></p>
-<% form_tag({:action => 'add_comment', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
+<% form_tag({:controller => 'comments', :action => 'create', :id => @news}, :id => "add_comment_form", :style => "display:none;") do %>
<div class="box">
<%= text_area 'comment', 'comments', :cols => 80, :rows => 15, :class => 'wiki-edit' %>
<%= wikitoolbar_for 'comment_comments' %>