mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-02-21 18:36:31 +00:00
Only filter out unrelated domains when the system has more than one domain. Single tenant systems show all registrations.
This commit is contained in:
@@ -98,14 +98,16 @@ require_once "includes/checkauth.php";
|
||||
$registrations[$x]['status'] = $row->{'status'};
|
||||
|
||||
//remove unrelated domains
|
||||
if (count($_SESSION["domains"]) > 1 && !permission_exists('registrations_all')) {
|
||||
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
||||
unset($registrations[$x]);
|
||||
if (count($_SESSION["domains"]) > 1) {
|
||||
if (count($_SESSION["domains"]) > 1 && !permission_exists('registrations_all')) {
|
||||
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
||||
unset($registrations[$x]);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
||||
unset($registrations[$x]);
|
||||
else {
|
||||
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
||||
unset($registrations[$x]);
|
||||
}
|
||||
}
|
||||
}
|
||||
//increment the array id
|
||||
|
||||
Reference in New Issue
Block a user