From 854d42b646662addf1eef3499c08fb91940365f4 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Thu, 15 Aug 2019 10:11:23 -0600 Subject: [PATCH] Update contact_note_edit.php --- app/contacts/contact_note_edit.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/contacts/contact_note_edit.php b/app/contacts/contact_note_edit.php index abbc5e2028..77756979e8 100644 --- a/app/contacts/contact_note_edit.php +++ b/app/contacts/contact_note_edit.php @@ -23,16 +23,19 @@ Contributor(s): Mark J Crane */ -require_once "root.php"; -require_once "resources/require.php"; -require_once "resources/check_auth.php"; -if (permission_exists('contact_note_edit') || permission_exists('contact_note_add')) { - //access granted -} -else { - echo "access denied"; - exit; -} +//includes + require_once "root.php"; + require_once "resources/require.php"; + require_once "resources/check_auth.php"; + +//check permissions + if (permission_exists('contact_note_edit') || permission_exists('contact_note_add')) { + //access granted + } + else { + echo "access denied"; + exit; + } //add multi-lingual support $language = new text; @@ -189,7 +192,7 @@ else { echo " ".$text['label-contact_note']."\n"; echo "\n"; echo "\n"; - echo " \n"; + echo " \n"; echo "
\n"; echo "\n"; echo "\n"; @@ -210,4 +213,5 @@ else { //include the footer require_once "resources/footer.php"; + ?>