]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_blocks_controller.rb
Allow to edit inactive blocks
[rails.git] / app / controllers / user_blocks_controller.rb
index 9ee3712265701fc336f6d8ed86d94aa770ca6a8f..3ab217a601fc5bfe1319aefffb5bb2ce8510314b 100644 (file)
@@ -142,9 +142,6 @@ class UserBlocksController < ApplicationController
     if UserBlock::PERIODS.exclude?(@block_period)
       flash[:error] = t("user_blocks.filter.block_period")
 
-    elsif @user_block && !@user_block.active?
-      flash[:error] = t("user_blocks.filter.block_expired")
-
     else
       @valid_params = true
     end