about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-08-07 19:05:48 -0500
committermultiple creatures <dev@multiple-creature.party>2019-08-07 19:05:48 -0500
commitbcfa50f5f585468d03e3471b4d282fca8cfaeee6 (patch)
treeeb18334d186f48a718df5b92e5552d63aca2aab7 /app
parent72592b3c9c66b88fca117f38d4bddb662ecb641e (diff)
unapply `force_sensitive` during domain policy resets
Diffstat (limited to 'app')
-rw-r--r--app/services/unblock_domain_service.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/services/unblock_domain_service.rb b/app/services/unblock_domain_service.rb
index ab246203f..ec6723421 100644
--- a/app/services/unblock_domain_service.rb
+++ b/app/services/unblock_domain_service.rb
@@ -11,6 +11,9 @@ class UnblockDomainService < BaseService
 
   def process_retroactive_updates
     blocked_accounts.in_batches.update_all(update_options) unless domain_block.noop?
+    if @domain_block.force_sensitive?
+      blocked_accounts.where(force_sensitive: true).in_batches.update_all(force_sensitive: false)
+    end
   end
 
   def blocked_accounts