From 48cffe41dac25b923411be2badfad001b270515d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 18 Mar 2021 10:44:43 -0600 Subject: [PATCH] Use permission fax_extension_view instead of if_group. --- app/fax/fax_files_remote.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/fax/fax_files_remote.php b/app/fax/fax_files_remote.php index 8fd24acd68..773b1ba1e3 100644 --- a/app/fax/fax_files_remote.php +++ b/app/fax/fax_files_remote.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - 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. Contributor(s): @@ -51,7 +51,7 @@ //get fax server uuid, set connection parameters if (is_uuid($fax_uuid)) { - if (if_group("superadmin") || if_group("admin")) { + if (permission_exists('fax_extension_view')) { //show all fax extensions $sql = "select * from v_fax "; $sql .= "where domain_uuid = :domain_uuid "; @@ -86,7 +86,7 @@ $fax_email_inbound_subject_tag = $row["fax_email_inbound_subject_tag"]; } else { - if (!if_group("superadmin") && !if_group("admin")) { + if (!permission_exists('fax_extension_view')) { echo "access denied"; exit; }