Merge pull request #1021 from moteus/show_reg_force_domain
Fix. Show registrations to sip profile with force-XXX-domain.
This commit is contained in:
commit
d7836a30c0
|
|
@ -110,7 +110,9 @@ require_once "resources/check_auth.php";
|
|||
//remove unrelated domains
|
||||
if (count($_SESSION["domains"]) > 1) {
|
||||
if (!(permission_exists('registration_all') && $show == "all")) {
|
||||
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
||||
if ($registrations[$x]['sip-auth-realm'] == $_SESSION['domain_name']) {}
|
||||
elseif ($user_array[1] == $_SESSION['domain_name']){}
|
||||
else {
|
||||
unset($registrations[$x]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue