From bba4f62d500f8b519cab86cd6dc4d789ce9bf19d Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 8 Jun 2018 00:33:16 -0600 Subject: [PATCH] Update contact_notes.php --- app/contacts/contact_notes.php | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/app/contacts/contact_notes.php b/app/contacts/contact_notes.php index 44cc6765b8..6bd8985756 100644 --- a/app/contacts/contact_notes.php +++ b/app/contacts/contact_notes.php @@ -17,22 +17,26 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2018 the Initial Developer. All Rights Reserved. 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_view')) { - //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_view')) { + //access granted + } + else { + echo "access denied"; + exit; + } //show the content echo "\n";