From c5ef7e04f41bbb1d1140c4484e298a23f61e218e Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Mon, 19 Mar 2018 00:36:35 -0600 Subject: [PATCH] Update call_flow_edit.php --- app/call_flows/call_flow_edit.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/call_flows/call_flow_edit.php b/app/call_flows/call_flow_edit.php index bcb8e2546f..e5e7a10eed 100644 --- a/app/call_flows/call_flow_edit.php +++ b/app/call_flows/call_flow_edit.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2016 + Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. Contributor(s): @@ -152,9 +152,13 @@ $_POST["dialplan_uuid"] = $dialplan_uuid; } - //set the context for users that are not in the superadmin group - if (!permission_exists('call_flow_context')) { - $call_flow_context = $_SESSION['domain_name']; + //set the default user context + if (permission_exists("call_flow_context")) { + //allow a user assigned to super admin to change the user_context + } + else { + //if the user_context was not set then set the default value + $user_context = $_SESSION['domain_name']; } //escape special characters