From 12c29895810ddd251e911ad428ef7761712f30f3 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Mon, 17 Feb 2014 14:57:19 +0000 Subject: [PATCH] The proper way to fix the problem is not to remove the permission checks. Restoring the permissions. --- core/user_settings/user_dashboard.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/user_settings/user_dashboard.php b/core/user_settings/user_dashboard.php index e65f87a751..45465f0a2d 100644 --- a/core/user_settings/user_dashboard.php +++ b/core/user_settings/user_dashboard.php @@ -99,14 +99,18 @@ //call forward, follow me and dnd 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"; require_once "app/calls/calls.php"; + } } //ring group forward 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"; require_once "app/ring_groups/ring_group_forward.php"; + } } //show the footer