X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c2af89c00e5bcb20981e737abb779ef65acd7b3e..9ab15f38ea72ccd0a6b6715a9b8014c1f4ce1ad8:/app/controllers/user_blocks_controller.rb?ds=inline 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