Use the voicemail greeting permisisons

This commit is contained in:
Mark Crane 2014-04-27 03:59:43 +00:00
parent 6da795000b
commit 5ab64dc223
2 changed files with 3 additions and 2 deletions

View File

@ -232,7 +232,7 @@ else {
echo " <span class='title'>".$text['title']."</span><br>\n";
echo " </td>";
if (permission_exists('recording_upload')) {
if (permission_exists('voicemail_greeting_upload')) {
echo " <td align='right' nowrap>\n";
echo " <input type='button' class='btn' name='' alt='back' onclick=\"javascript:history.back();\" value='".$text['button-back']."'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n";
echo " <input name=\"file\" type=\"file\" class=\"formfld\" id=\"file\">\n";
@ -322,7 +322,7 @@ else {
echo " <td valign='top' class='".$row_style[$c]."'>".$row['greeting_name']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('recording_download')) {
if (permission_exists('voicemail_greeting_download')) {
echo " <a href=\"voicemail_greetings.php?id=$voicemail_id&a=download&type=rec&t=bin&filename=".base64_encode($row['greeting_name'])."\">".$text['table-download']."</a>";
}
//echo "&nbsp;\n";

View File

@ -60,6 +60,7 @@
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
$apps[$x]['permissions'][$y]['groups'][] = "admin";
$apps[$x]['permissions'][$y]['groups'][] = "user";
$y++;
//schema details
$y = 0; //table array index