Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix: bug (#6284)
  • Loading branch information
stephenwaite committed Mar 14, 2023
1 parent 0dd5a74 commit 81832ac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions library/classes/Controller.class.php
Expand Up @@ -83,6 +83,13 @@ public function act($qarray)
}
}

if ((array_key_first($qarray) ?? '') == 'prescription') {
if (!AclMain::aclCheckCore('patients', 'prescriptions')) {
echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Prescriptions")]);
exit;
}
}

if (isset($_GET['process'])) {
unset($_GET['process']);
unset($qarray['process']);
Expand Down

0 comments on commit 81832ac

Please sign in to comment.