X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/c2af89c00e5bcb20981e737abb779ef65acd7b3e..7d46f5db6004f1e0555150c3f97c82185d76b837:/app/controllers/user_blocks_controller.rb diff --git a/app/controllers/user_blocks_controller.rb b/app/controllers/user_blocks_controller.rb index 058c442d5..63fca6557 100644 --- a/app/controllers/user_blocks_controller.rb +++ b/app/controllers/user_blocks_controller.rb @@ -79,7 +79,7 @@ class UserBlocksController < ApplicationController ## # revokes the block, setting the end_time to now def revoke - if params[:confirm] && @user_block.revoke!(current_user) + if request.post? && params[:confirm] && @user_block.revoke!(current_user) flash[:notice] = t ".flash" redirect_to(@user_block) end