Make the registration_all permission work correctly.
This commit is contained in:
@@ -106,10 +106,8 @@ require_once "resources/check_auth.php";
|
|||||||
|
|
||||||
//remove unrelated domains
|
//remove unrelated domains
|
||||||
if (count($_SESSION["domains"]) > 1) {
|
if (count($_SESSION["domains"]) > 1) {
|
||||||
if (count($_SESSION["domains"]) > 1 && !permission_exists('registration_all')) {
|
if (permission_exists('registration_all')) {
|
||||||
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
//show all registrations
|
||||||
unset($registrations[$x]);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
if ($registrations[$x]['sip-auth-realm'] != $_SESSION['domain_name']) {
|
||||||
|
|||||||
Reference in New Issue
Block a user