Call Routing - Edit: Prevent access to unassigned Extension.
This commit is contained in:
parent
83a8e0112a
commit
ee52439906
|
|
@ -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-2019
|
Portions created by the Initial Developer are Copyright (C) 2008-2020
|
||||||
the Initial Developer. All Rights Reserved.
|
the Initial Developer. All Rights Reserved.
|
||||||
|
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
$sql = "select * from v_extensions ";
|
$sql = "select * from v_extensions ";
|
||||||
$sql .= "where domain_uuid = :domain_uuid ";
|
$sql .= "where domain_uuid = :domain_uuid ";
|
||||||
$sql .= "and extension_uuid = :extension_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) {
|
if (count($_SESSION['user']['extension']) > 0) {
|
||||||
$sql .= "and (";
|
$sql .= "and (";
|
||||||
$x = 0;
|
$x = 0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue