The proper way to fix the problem is not to remove the permission checks. Restoring the permissions.

This commit is contained in:
Mark Crane 2014-02-17 14:57:19 +00:00
parent 84b31a9e86
commit be22029e50
1 changed files with 4 additions and 0 deletions

View File

@ -99,15 +99,19 @@
//call forward, follow me and dnd //call forward, follow me and dnd
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/calls/calls.php")) { if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/calls/calls.php")) {
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
$is_included = "true"; $is_included = "true";
require_once "app/calls/calls.php"; require_once "app/calls/calls.php";
} }
}
//ring group forward //ring group forward
if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/ring_groups/ring_group_forward.php")) { if (file_exists($_SERVER["DOCUMENT_ROOT"].PROJECT_PATH."/app/ring_groups/ring_group_forward.php")) {
if (permission_exists('ring_group_forward')) { //ring_group_forward
$is_included = "true"; $is_included = "true";
require_once "app/ring_groups/ring_group_forward.php"; require_once "app/ring_groups/ring_group_forward.php";
} }
}
//show the footer //show the footer
require_once "resources/footer.php"; require_once "resources/footer.php";