FIX: Deleting Users should work nicely with Reviewable Users

"Rejecting" a user in the queue is equivalent to deleting them, which
would then making it impossible to review rejected users. Now we store
information about the user in the payload so if they are deleted things
still display in the Rejected view.

Secondly, if a user is destroyed outside of the review queue, it will
now automatically "Reject" that queue item.
This commit is contained in:
Robin Ward
2019-04-03 16:41:04 -04:00
parent 3cf922a58a
commit 111a502231
10 changed files with 75 additions and 10 deletions

View File

@@ -1220,7 +1220,6 @@ class User < ActiveRecord::Base
Jobs.enqueue(:create_user_reviewable, user_id: self.id)
end
protected
def badge_grant