Use the new fax_extension_view_domain instead of if_group superadmin and admin.

This commit is contained in:
FusionPBX 2021-03-18 10:35:37 -06:00 committed by GitHub
parent d27c7e210e
commit 95b5660da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@
//get fax extension
if (is_uuid($_GET["id"])) {
$fax_uuid = $_GET["id"];
if (if_group("superadmin") || if_group("admin")) {
if (permission_exists('fax_extension_view_domain')) {
//show all fax extensions
$sql = "select fax_name, fax_extension from v_fax ";
$sql .= "where domain_uuid = :domain_uuid ";
@ -102,7 +102,7 @@
$fax_extension = $row["fax_extension"];
}
else {
if (!if_group("superadmin") && !if_group("admin")) {
if (!permission_exists('fax_extension_view_domain')) {
echo "access denied";
exit;
}
@ -409,4 +409,4 @@
//include the footer
require_once "resources/footer.php";
?>
?>