X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0d3a9ed9cb47ce3b89ea9eaffbb589f9a9ff6d22..191af4a8b4bdd45c58917e34b545907b4e5df1b4:/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