mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Use the new fax_extension_view_domain instead of if_group superadmin and admin.
This commit is contained in:
@@ -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";
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user