From aaa7d863319a11095d05357287a6a42971878d13 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 20 Nov 2013 20:24:50 +0000 Subject: [PATCH] On the voicemail messages page hide the greetings and settings buttons if the user doesn't have the correct view permission. --- app/voicemails/voicemail_messages.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/voicemails/voicemail_messages.php b/app/voicemails/voicemail_messages.php index 20cbaa5126..98c1a2113f 100644 --- a/app/voicemails/voicemail_messages.php +++ b/app/voicemails/voicemail_messages.php @@ -146,8 +146,12 @@ else { echo " \n"; echo "\n"; echo "\n"; + if (permission_exists('voicemail_greeting_view')) { echo " \n"; - echo " \n"; + } + if (permission_exists('voicemail_view')) { + echo " \n"; + } echo "\n"; echo "\n"; echo $table_header;