You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/models/pager_tree/integrations/live_call_routing/twilio/v3.rb
+19-3Lines changed: 19 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -83,7 +83,7 @@ def option_record_emails_list
83
83
end
84
84
85
85
defvalidate_record_emails
86
-
errors.add(:record_emails,"must be a valid email")ifoption_record_emails.any?{ |x| !x.match(URI::MailTo::EMAIL_REGEXP)}
86
+
errors.add(:record_emails,"must be a valid email")ifoption_record_emails.any?{ |x| !(x.match(URI::MailTo::EMAIL_REGEXP) || ["team","team-admin","on-call"].include?(x))}
87
87
end
88
88
89
89
defadapter_supports_incoming?
@@ -229,8 +229,24 @@ def adapter_response_dropped
229
229
230
230
adapter_alert.logs.create!(message: "Caller left a <a href='#{recording_url}' target='_blank'>voicemail</a>.")
0 commit comments