Make the registration_all permission work correctly.

This commit is contained in:
Mark Crane 2014-04-28 18:06:16 +00:00
parent 0cd7afdcbd
commit ccfbda3e4c
1 changed files with 2 additions and 4 deletions

View File

@ -106,10 +106,8 @@ require_once "resources/check_auth.php";
//remove unrelated domains
if (count($_SESSION["domains"]) > 1) {
if (count($_SESSION["domains"]) > 1 && !permission_exists('registration_all')) {
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
unset($registrations[$x]);
}
if (permission_exists('registration_all')) {
//show all registrations
}
else {
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {