Skip to content

Commit

Permalink
bug fix a2
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Apr 27, 2022
1 parent d68a1e5 commit 3c5fbbc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions interface/reports/cdr_log.php
Expand Up @@ -15,9 +15,15 @@
require_once "$srcdir/options.inc.php";
require_once "$srcdir/clinical_rules.php";

use OpenEMR\Common\Acl\AclMain;
use OpenEMR\Common\Csrf\CsrfUtils;
use OpenEMR\Core\Header;

if (!AclMain::aclCheckCore('patients', 'med')) {
echo xlt('Not Authorized');
exit;
}

if (!empty($_POST)) {
if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
CsrfUtils::csrfNotVerified();
Expand Down
8 changes: 7 additions & 1 deletion interface/reports/cqm.php
Expand Up @@ -21,10 +21,16 @@
require_once "$srcdir/clinical_rules.php";
require_once "$srcdir/report_database.inc";

use OpenEMR\Common\Acl\AclMain;
use OpenEMR\ClinicialDecisionRules\AMC\CertificationReportTypes;
use OpenEMR\Common\Csrf\CsrfUtils;
use OpenEMR\Services\PractitionerService;
use OpenEMR\Common\Twig\TwigContainer;
use OpenEMR\Services\PractitionerService;

if (!AclMain::aclCheckCore('patients', 'med')) {
echo xlt('Not Authorized');
exit;
}

if (!empty($_POST)) {
if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
Expand Down

0 comments on commit 3c5fbbc

Please sign in to comment.