diff --git a/app/call_center_active/app_config.php b/app/call_center_active/app_config.php
index 70ec7d46c3..7a11d1890b 100644
--- a/app/call_center_active/app_config.php
+++ b/app/call_center_active/app_config.php
@@ -42,4 +42,9 @@
$apps[$x]['permissions'][0]['groups'][] = "admin";
$apps[$x]['permissions'][0]['groups'][] = "superadmin";
+ $apps[$x]['permissions'][1]['name'] = "call_center_active_options";
+ $apps[$x]['permissions'][1]['menu']['uuid'] = "7fb0dd87-e984-9980-c512-2c76b887aeb2";
+ $apps[$x]['permissions'][1]['groups'][] = "admin";
+ $apps[$x]['permissions'][1]['groups'][] = "superadmin";
+
?>
diff --git a/app/call_center_active/call_center_active_inc.php b/app/call_center_active/call_center_active_inc.php
index fd29215a7f..ef8e577994 100644
--- a/app/call_center_active/call_center_active_inc.php
+++ b/app/call_center_active/call_center_active_inc.php
@@ -145,7 +145,9 @@ else {
echo "
".$text['label-tier_state']." | \n";
echo "".$text['label-tier_level']." | \n";
echo "".$text['label-tier_position']." | \n";
- echo "".$text['label-options']." | \n";
+ if (permission_exists('call_center_active_options')) {
+ echo "".$text['label-options']." | \n";
+ }
echo "\n";
foreach ($tier_result as $tier_row) {
//$queue = $tier_row['queue'];
@@ -210,7 +212,7 @@ else {
echo "".$tier_level." | \n";
echo "".$tier_position." | \n";
- if (if_group("admin") || if_group("superadmin")) {
+ if (permission_exists('call_center_active_options')) {
echo "";
@@ -218,9 +220,9 @@ else {
if ($tier_state == "Offering" || $tier_state == "Active Inbound") {
$orig_command="{origination_caller_id_name=eavesdrop,origination_caller_id_number=".$a_exten."}user/".$_SESSION['user']['extension'][0]['user']."@".$_SESSION['domain_name']." %26eavesdrop(".$a_uuid.")";
- //debug
- //echo $orig_command;
- //echo " log_cmd \n";
+ //debug
+ //echo $orig_command;
+ //echo " log_cmd \n";
echo " ".$text['label-eavesdrop']." \n";
$xfer_command = $a_uuid." -bleg ".$_SESSION['user']['extension'][0]['user']." XML ".$_SESSION['domain_name'];
|