Always remove unrelated domains by default.

This commit is contained in:
FusionPBX 2020-08-04 20:28:33 -06:00 committed by GitHub
parent 2b7c938f49
commit 1f05ee8a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 7 deletions

View File

@ -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]);
}
}