- if params[:confirm]
- if @user_block.revoke! current_user
- flash[:notice] = t ".flash"
- redirect_to(@user_block)
- end
+ if request.post? && params[:confirm] && @user_block.revoke!(current_user)
+ flash[:notice] = t ".flash"
+ redirect_to(@user_block)