add access check for post previews

This commit is contained in:
albert
2013-02-17 15:50:42 -05:00
parent caf976fb5e
commit b9355009a6
2 changed files with 5 additions and 1 deletions

View File

@@ -17,7 +17,7 @@
<p><%= link_to "Reply &raquo;".html_safe, new_forum_post_path(:topic_id => @forum_topic.id) %></p>
<div style="display: none;" id="topic-response">
<div id="topic-response">
<%= render "forum_posts/form", :forum_post => ForumPost.new(:topic_id => @forum_topic.id) %>
</div>