diff --git a/app/voicemails/voicemail_edit.php b/app/voicemails/voicemail_edit.php index d95ef4ba02..220c7875eb 100644 --- a/app/voicemails/voicemail_edit.php +++ b/app/voicemails/voicemail_edit.php @@ -341,6 +341,15 @@ echo " }\n"; echo "\n"; } + +//set the location for the back button + if (permission_exists('voicemail_view')) { + $back_button_location = "voicemails.php"; + } + else { + $back_button_location = "voicemail_messages.php?voicemail_uuid=".urlencode($voicemail_uuid); + } + //show the content echo "