X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fbabed694b5acae64c8baf633ab17d1e61010370..501d13e1c0936cc3ba3d9639620517bae34e5784:/app/models/user_block.rb diff --git a/app/models/user_block.rb b/app/models/user_block.rb index 2cf0eefc4..cb1a97dca 100644 --- a/app/models/user_block.rb +++ b/app/models/user_block.rb @@ -32,11 +32,11 @@ class UserBlock < ActiveRecord::Base # revokes the block, allowing the user to use the API again. the argument # is the user object who is revoking the ban. def revoke!(revoker) - update_attributes({ + update_attributes( :ends_at => Time.now.getutc(), :revoker_id => revoker.id, :needs_view => false - }, :without_protection => true) + ) end private