From 9dd246a80a0a387aa84e51ab4eb5247ec06af380 Mon Sep 17 00:00:00 2001 From: Arca Ege Cengiz <40526225+ArcaEge@users.noreply.github.com> Date: Wed, 10 Dec 2025 00:03:35 +0000 Subject: [PATCH] Change email unlink validation to allow "unknown" source emails to unlink (#699) --- app/models/email_address.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/email_address.rb b/app/models/email_address.rb index 501263d..410540b 100644 --- a/app/models/email_address.rb +++ b/app/models/email_address.rb @@ -16,8 +16,7 @@ class EmailAddress < ApplicationRecord before_validation :downcase_email def can_unlink? - # only allow unlinking if signin email - self.source_signing_in? + !(self.source_github? || self.source_slack? || self.source_preserved_for_deletion?) end private