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 "
\n"; echo "\n"; @@ -350,10 +359,11 @@ echo "

"; echo "\n"; echo "\n";
\n"; - echo " \n"; + echo " \n"; if ($password_complexity == "true") { echo " "; - } else { + } + else { echo " \n"; } echo "