add action for marking forum as read

This commit is contained in:
albert
2013-02-24 17:09:07 -05:00
parent cd3f2483f8
commit 2f47b01379
4 changed files with 10 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ class ForumPostsController < ApplicationController
@forum_post.update_attribute(:is_deleted, false)
respond_with(@forum_post)
end
private
def check_privilege(forum_post)
if !forum_post.editable_by?(CurrentUser.user)