Updated to check voicemail_greeting_upload permission if something happens to get uploaded somehow.

This commit is contained in:
Nate Jones 2014-04-27 04:09:16 +00:00
parent e643729f49
commit 566f0a1034
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ else {
$v_greeting_dir = $_SESSION['switch']['storage']['dir'].'/voicemail/default/'.$_SESSION['domains'][$domain_uuid]['domain_name'].'/'.$voicemail_id;
//upload the recording
if (($_POST['submit'] == $text['button-save']) && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('recording_upload')) {
if (($_POST['submit'] == $text['button-save']) && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('voicemail_greeting_upload')) {
if ($_POST['type'] == 'rec') {
for($i = 1; $i < 10; $i++){
$tmp_greeting = 'greeting_'.$i.'.wav';