From 1f05ee8a869f43630f161b4ed752bc4e0dc6b5ba Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 4 Aug 2020 20:28:33 -0600 Subject: [PATCH] Always remove unrelated domains by default. --- .../resources/classes/registrations.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php index 9631123964..0791c919bb 100644 --- a/app/registrations/resources/classes/registrations.php +++ b/app/registrations/resources/classes/registrations.php @@ -170,13 +170,11 @@ if (!class_exists('registrations')) { } //remove unrelated domains - if (count($_SESSION["domains"]) > 1) { - if (!permission_exists('registration_all') || $this->show != 'all') { - if ($registrations[$id]['sip-auth-realm'] == $_SESSION['domain_name']) {} - else if ($user_array[1] == $_SESSION['domain_name']) {} - else { - unset($registrations[$id]); - } + if (!permission_exists('registration_all') || $this->show != 'all') { + if ($registrations[$id]['sip-auth-realm'] == $_SESSION['domain_name']) {} + else if ($user_array[1] == $_SESSION['domain_name']) {} + else { + unset($registrations[$id]); } }