]> git.openstreetmap.org Git - rails.git/commit
Don't validate the revoker for a block if it hasn't changed
authorTom Hughes <tom@compton.nu>
Thu, 9 Jan 2020 10:59:34 +0000 (10:59 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Jan 2020 10:59:34 +0000 (10:59 +0000)
commitb1e1572af3c209439e230d1822496a80c639bab5
tree8a7f83beef14249e99f3b6b5dfcf341716b660cb
parent928465764e52407884b35e31a08bf9241e651269
Don't validate the revoker for a block if it hasn't changed

The revoker only has to be a moderator at the time they make the
revocation - as things stood trying to view a block that had been
revoked by somebody that was no longer a moderator failed.
app/models/user_block.rb