diff --git a/app/calls/call_edit.php b/app/calls/call_edit.php index 5a7c88b302..2c74a12e85 100644 --- a/app/calls/call_edit.php +++ b/app/calls/call_edit.php @@ -789,18 +789,20 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) { echo "\n"; echo "\n"; - echo " \n"; - echo " "; - echo $text['label-ignore-busy']; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo "
\n"; - echo $text['description-ignore-busy']." \n"; - //echo "
Interrupt call if one of destination are busy\n"; - echo " \n"; - echo " \n"; + if (permission_exists('follow_me_ignore_busy')) { + echo " \n"; + echo " "; + echo $text['label-ignore-busy']; + echo " \n"; + echo " \n"; + echo " \n"; + echo " \n"; + echo "
\n"; + echo $text['description-ignore-busy']." \n"; + //echo "
Interrupt call if one of destination are busy\n"; + echo " \n"; + echo " \n"; + } if (permission_exists('follow_me_cid_name_prefix')) { echo "\n"; diff --git a/app/follow_me/app_config.php b/app/follow_me/app_config.php index 7302d85b29..50e35dc173 100644 --- a/app/follow_me/app_config.php +++ b/app/follow_me/app_config.php @@ -62,6 +62,10 @@ $apps[$x]['permissions'][$y]['groups'][] = "admin"; $apps[$x]['permissions'][$y]['groups'][] = "user"; $y++; + $apps[$x]['permissions'][$y]['name'] = "follow_me_ignore_busy"; + //$apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + //$apps[$x]['permissions'][$y]['groups'][] = "admin"; + $y++; $apps[$x]['permissions'][$y]['name'] = "follow_me_cid_name_prefix"; //$apps[$x]['permissions'][$y]['groups'][] = "superadmin"; //$apps[$x]['permissions'][$y]['groups'][] = "admin";