Call Routing - Edit: Prevent access to unassigned Extension.

This commit is contained in:
Nate
2020-04-14 09:13:47 -06:00
parent 83a8e0112a
commit ee52439906

View File

@@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2019
Portions created by the Initial Developer are Copyright (C) 2008-2020
the Initial Developer. All Rights Reserved.
Contributor(s):
@@ -62,7 +62,7 @@
$sql = "select * from v_extensions ";
$sql .= "where domain_uuid = :domain_uuid ";
$sql .= "and extension_uuid = :extension_uuid ";
if (!(permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb'))) {
if (!permission_exists('extension_edit')) {
if (count($_SESSION['user']['extension']) > 0) {
$sql .= "and (";
$x = 0;