Explorar o código

fixes user portal so folow-me and call forward works for users

Richard Neese %!s(int64=11) %!d(string=hai) anos
pai
achega
378806fbb8
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      core/user_settings/user_dashboard.php

+ 0 - 4
core/user_settings/user_dashboard.php

@@ -99,18 +99,14 @@
 
 
 //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