From 113432cd84173a62b8809eb8a7f8d54b36cca780 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Tue, 2 Jun 2026 13:54:21 -0500 Subject: [PATCH] Restrict making SIP account --- sgx_jmp.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sgx_jmp.rb b/sgx_jmp.rb index b63d462b75cdb99d4028294e87254cf9faef7cec..90af99b78f022ff1d218a58c024afddc81b9beca 100644 --- a/sgx_jmp.rb +++ b/sgx_jmp.rb @@ -815,7 +815,11 @@ Command.new( "☎️ Create or Reset SIP Account", customer_repo: CustomerRepo.new(sgx_repo: Bwmsgsv2Repo.new) ) { - Command.customer.then do |customer| + Command.customer.then { |customer| + TrustLevelRepo.new.find(customer).then { |tl| [customer, tl] } + }.then do |(customer, tl)| + raise "Please contact JMP support" unless tl.support_call?(0, 1, :outbound) + sip_account = customer.reset_sip_account Command.reply { |reply| reply.allowed_actions = [:next]