On the voicemail messages page hide the greetings and settings buttons if the user doesn't have the correct view permission.

This commit is contained in:
Mark Crane 2013-11-20 20:24:50 +00:00
parent a4bdce99ea
commit aaa7d86331
1 changed files with 5 additions and 1 deletions

View File

@ -146,8 +146,12 @@ else {
echo " \n";
echo "</td>\n";
echo "<td valign='bottom' align='right'>\n";
if (permission_exists('voicemail_greeting_view')) {
echo " <input type='button' class='btn' name='' alt='greetings' onclick=\"window.location='".PROJECT_PATH."/app/voicemail_greetings/voicemail_greetings.php?id=".$voicemail_id."'\" value='".$text['button-greetings']."'>\n";
echo " <input type='button' class='btn' name='' alt='settings' onclick=\"window.location='".PROJECT_PATH."/app/voicemails/voicemail_edit.php?id=".$voicemail_uuid."'\" value='".$text['button-settings']."'>\n";
}
if (permission_exists('voicemail_view')) {
echo " <input type='button' class='btn' name='' alt='settings' onclick=\"window.location='".PROJECT_PATH."/app/voicemails/voicemail_edit.php?id=".$voicemail_uuid."'\" value='".$text['button-settings']."'>\n";
}
echo "</td>\n";
echo "</tr>\n";
echo $table_header;