pundit: convert forum topics / forum posts to pundit.
Fix it being possible for users to delete or undelete their own forum posts and topics, even if they were deleted by a mod.
This commit is contained in:
@@ -19,7 +19,7 @@ class ForumUpdater
|
||||
end
|
||||
|
||||
def create_response(body)
|
||||
forum_topic.posts.create(body: body, skip_mention_notifications: true, creator: User.system)
|
||||
forum_topic.forum_posts.create(body: body, skip_mention_notifications: true, creator: User.system)
|
||||
end
|
||||
|
||||
def update_post(body)
|
||||
|
||||
Reference in New Issue
Block a user