Active Calls: Removed broken Transfer, Park and Record options in favor the Operator Panel (Park functionality to eventually be added to the OP).
Operator Panel: Only superadmin group can view debug info.
This commit is contained in:
@@ -372,7 +372,7 @@ foreach ($activity as $extension => $ext) {
|
||||
$block .= " </tr>";
|
||||
$block .= "</table>";
|
||||
|
||||
if (isset($_GET['debug'])) {
|
||||
if (if_group("superadmin") && isset($_GET['debug'])) {
|
||||
$block .= "<span style='font-size: 10px;'>";
|
||||
$block .= "From ID<br> <strong style='color: maroon'>".$extension."</strong><br>";
|
||||
$block .= "uuid<br> <strong style='color: ".($call_identifier == $ext['uuid'] ? 'blue' : 'black').";'>".$ext['uuid']."</strong><br>";
|
||||
@@ -430,7 +430,7 @@ else {
|
||||
}
|
||||
echo "<br><br>";
|
||||
|
||||
if (isset($_GET['debug'])) {
|
||||
if (if_group("superadmin") && isset($_GET['debug'])) {
|
||||
echo '$activity<br>';
|
||||
echo "<textarea style='width: 100%; height: 600px; overflow: scroll;' onfocus='refresh_stop();' onblur='refresh_start();'>";
|
||||
print_r($activity);
|
||||
|
||||
Reference in New Issue
Block a user