mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: deleting a flagged post issue
cf. http://meta.discourse.org/t/deleting-a-flagged-post-issue/10061 The bug was only happening when you were about the delete the first post, which means deleting the entire topic.
This commit is contained in:
parent
7caefded86
commit
af96ef2994
8 changed files with 26 additions and 8 deletions
|
@ -154,7 +154,6 @@ class PostsController < ApplicationController
|
|||
raise Discourse::InvalidParameters.new(:post_ids) if posts.blank?
|
||||
|
||||
# Make sure we can delete the posts
|
||||
|
||||
posts.each {|p| guardian.ensure_can_delete!(p) }
|
||||
|
||||
Post.transaction do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue