FIX: Don't abort PurgeInactive if they have posts. Just skip.

This commit is contained in:
Robin Ward 2015-05-04 11:37:49 -04:00
parent 7e3eaf5b02
commit 4745eca4ad
1 changed files with 1 additions and 1 deletions

View File

@ -887,7 +887,7 @@ class User < ActiveRecord::Base
to_destroy.each do |u|
begin
destroyer.destroy(u, context: I18n.t(:purge_reason))
rescue Discourse::InvalidAccess
rescue Discourse::InvalidAccess, UserDestroyer::PostsExistError
# if for some reason the user can't be deleted, continue on to the next one
end
end