diff --git a/app/music_on_hold/app_config.php b/app/music_on_hold/app_config.php index e63b60f5e6..6b22039d4e 100644 --- a/app/music_on_hold/app_config.php +++ b/app/music_on_hold/app_config.php @@ -32,16 +32,20 @@ $apps[$x]['menu'][0]['uuid'] = '1cd1d6cb-912d-db32-56c3-e0d5699feb9d'; $apps[$x]['menu'][0]['parent_uuid'] = 'fd29e39c-c936-f5fc-8e2b-611681b266b5'; $apps[$x]['menu'][0]['category'] = 'internal'; - $apps[$x]['menu'][0]['path'] = '/app/music_on_hold/v_music_on_hold.php'; + $apps[$x]['menu'][0]['path'] = '/app/music_on_hold/music_on_hold.php'; $apps[$x]['menu'][0]['groups'][] = 'superadmin'; + $apps[$x]['menu'][0]['groups'][] = 'admin'; //permission details $apps[$x]['permissions'][0]['name'] = 'music_on_hold_view'; $apps[$x]['permissions'][0]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][0]['groups'][] = 'admin'; $apps[$x]['permissions'][1]['name'] = 'music_on_hold_add'; $apps[$x]['permissions'][1]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][1]['groups'][] = 'admin'; $apps[$x]['permissions'][2]['name'] = 'music_on_hold_delete'; $apps[$x]['permissions'][2]['groups'][] = 'superadmin'; + $apps[$x]['permissions'][1]['groups'][] = 'admin'; ?> \ No newline at end of file diff --git a/app/music_on_hold/music_on_hold.php b/app/music_on_hold/music_on_hold.php index 5b685c02cf..a298e07e2d 100644 --- a/app/music_on_hold/music_on_hold.php +++ b/app/music_on_hold/music_on_hold.php @@ -153,7 +153,7 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) { } unlink($dir_music_on_hold."/".$path_mod.$samplingrate_folder."/".base64_decode($_GET['filename'])); - header("Location: v_music_on_hold.php"); + header("Location: music_on_hold.php"); exit; } @@ -174,7 +174,7 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) { sleep(5); // allow time for the OS to catch up (at least Windows, anyway) } - header("Location: v_music_on_hold.php"); + header("Location: music_on_hold.php"); exit; } } @@ -305,9 +305,9 @@ if ($_GET['act'] == "del" && permission_exists('music_on_hold_delete')) { $tmp_filesize = byte_convert($tmp_filesize); echo "