This commit is contained in:
Toks
2013-10-09 13:05:06 -04:00
parent 516212b488
commit 59aa45e83b
4 changed files with 9 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ class ForumPostsController < ApplicationController
def destroy
@forum_post = ForumPost.find(params[:id])
raise User::PrivilegeError unless @forum_post.editable_by?(CurrentUser.user)
check_privilege(@forum_post)
@forum_post.update_column(:is_deleted, true)
respond_with(@forum_post)
end