Skip to content

Commit

Permalink
bug fix (#5062)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Mar 30, 2022
1 parent 5e30306 commit 3af1f4a
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -24,6 +24,7 @@
use Application\Listener\Listener;
use Installer\Model\InstModuleTable;
use Laminas\Db\Adapter\Adapter;
use OpenEMR\Common\Acl\AclMain;
use OpenEMR\Common\Utils\RandomGenUtils;
use Laminas\Console\Request as ConsoleRequest;
use OpenEMR\Services\Utils\SQLUpgradeService;
Expand Down Expand Up @@ -90,6 +91,11 @@ public function getInstallerTable(): InstModuleTable

public function registerAction()
{
if (!AclMain::aclCheckCore('admin', 'manage_modules')) {
echo xlt('Not Authorized');
exit;
}

$status = false;
$request = $this->getRequest();
if (method_exists($request, 'isPost')) {
Expand Down Expand Up @@ -133,6 +139,11 @@ public function registerAction()

public function manageAction()
{
if (!AclMain::aclCheckCore('admin', 'manage_modules')) {
echo json_encode(["status" => xlt('Not Authorized')]);
exit;
}

$outputToBrowser = '';
$request = $this->getRequest();
$status = $this->listenerObject->z_xlt("Failure");
Expand Down

0 comments on commit 3af1f4a

Please sign in to comment.