Skip to content

Commit

Permalink
fix: bugs (openemr#6552)
Browse files Browse the repository at this point in the history
* more fixes

* remove test.php

* jerry's got this
  • Loading branch information
stephenwaite committed Jun 16, 2023
1 parent 40636e7 commit ec990f7
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions interface/billing/print_billing_report.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,16 @@
require_once("$srcdir/report.inc.php");

use OpenEMR\Billing\BillingReport;
use OpenEMR\Common\Acl\AclMain;
use OpenEMR\Common\Twig\TwigContainer;
use OpenEMR\Core\Header;

//ensure user has proper access
if (!AclMain::aclCheckCore('acct', 'eob', '', 'write') && !AclMain::aclCheckCore('acct', 'bill', '', 'write')) {
echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Billing Manager")]);
exit;
}

//how many columns to use when displaying information
$COLS = 6;

Expand Down
8 changes: 8 additions & 0 deletions interface/billing/print_daysheet_report_num1.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@
require_once("$srcdir/daysheet.inc.php");

use OpenEMR\Billing\BillingReport;
use OpenEMR\Common\Acl\AclMain;
use OpenEMR\Common\Twig\TwigContainer;
use OpenEMR\Core\Header;

//ensure user has proper access
if (!AclMain::aclCheckCore('acct', 'eob', '', 'write') && !AclMain::aclCheckCore('acct', 'bill', '', 'write')) {
echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Billing Manager")]);
exit;
}

//global variables:
if (!isset($_GET["mode"])) {
if (!isset($_GET["from_date"])) {
Expand Down
8 changes: 8 additions & 0 deletions interface/billing/print_daysheet_report_num2.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,16 @@
require_once("$srcdir/daysheet.inc.php");

use OpenEMR\Billing\BillingReport;
use OpenEMR\Common\Acl\AclMain;
use OpenEMR\Common\Twig\TwigContainer;
use OpenEMR\Core\Header;

//ensure user has proper access
if (!AclMain::aclCheckCore('acct', 'eob', '', 'write') && !AclMain::aclCheckCore('acct', 'bill', '', 'write')) {
echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Billing Manager")]);
exit;
}

//global variables:
if (!isset($_GET["mode"])) {
if (!isset($_GET["from_date"])) {
Expand Down
8 changes: 8 additions & 0 deletions interface/billing/print_daysheet_report_num3.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,16 @@
require_once("$srcdir/daysheet.inc.php");

use OpenEMR\Billing\BillingReport;
use OpenEMR\Common\Acl\AclMain;
use OpenEMR\Common\Twig\TwigContainer;
use OpenEMR\Core\Header;

//ensure user has proper access
if (!AclMain::aclCheckCore('acct', 'eob', '', 'write') && !AclMain::aclCheckCore('acct', 'bill', '', 'write')) {
echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Billing Manager")]);
exit;
}

//global variables:
if (!isset($_GET["mode"])) {
if (!isset($_GET["from_date"])) {
Expand Down

0 comments on commit ec990f7

Please sign in to comment.