X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/38758821725b85e49efbaa8d44735c81c92cf775..f0feca800d91ac1d23eb63ca17a45d8fd4d41920:/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