Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bug fix (#6098)
  • Loading branch information
bradymiller committed Jan 16, 2023
1 parent 927784d commit bb4244c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions library/classes/Controller.class.php
@@ -1,5 +1,8 @@
<?php

use OpenEMR\Common\Acl\AclMain;
use OpenEMR\Common\Twig\TwigContainer;

// TODO: @adunsulag move these into src/
class Controller extends Smarty
{
Expand Down Expand Up @@ -73,6 +76,12 @@ public function i_once($file)

public function act($qarray)
{
if ((array_key_first($qarray) ?? '') == 'practice_settings') {
if (!AclMain::aclCheckCore('admin', 'practice')) {
echo (new TwigContainer(null, $GLOBALS['kernel']))->getTwig()->render('core/unauthorized.html.twig', ['pageTitle' => xl("Practice Settings")]);
exit;
}
}

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

0 comments on commit bb4244c

Please sign in to comment.