Only filter out unrelated domains when the system has more than one domain. Single tenant systems show all registrations.
This commit is contained in:
parent
f422dcae9f
commit
4d6328abc4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue