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:
FusionPBX 2015-07-18 12:57:10 -07:00
commit d7836a30c0
1 changed files with 3 additions and 1 deletions

View File

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