Use permission fax_extension_view instead of if_group.
This commit is contained in:
parent
d0fbbd6a2e
commit
48cffe41da
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
The Initial Developer of the Original Code is
|
The Initial Developer of the Original Code is
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
Portions created by the Initial Developer are Copyright (C) 2008-2012
|
Portions created by the Initial Developer are Copyright (C) 2008-2021
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
//get fax server uuid, set connection parameters
|
//get fax server uuid, set connection parameters
|
||||||
if (is_uuid($fax_uuid)) {
|
if (is_uuid($fax_uuid)) {
|
||||||
|
|
||||||
if (if_group("superadmin") || if_group("admin")) {
|
if (permission_exists('fax_extension_view')) {
|
||||||
//show all fax extensions
|
//show all fax extensions
|
||||||
$sql = "select * from v_fax ";
|
$sql = "select * from v_fax ";
|
||||||
$sql .= "where domain_uuid = :domain_uuid ";
|
$sql .= "where domain_uuid = :domain_uuid ";
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
$fax_email_inbound_subject_tag = $row["fax_email_inbound_subject_tag"];
|
$fax_email_inbound_subject_tag = $row["fax_email_inbound_subject_tag"];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (!if_group("superadmin") && !if_group("admin")) {
|
if (!permission_exists('fax_extension_view')) {
|
||||||
echo "access denied";
|
echo "access denied";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue