Skip to content

Commit

Permalink
bug fix a1
Browse files Browse the repository at this point in the history
  • Loading branch information
bradymiller committed Apr 27, 2022
1 parent 84e628b commit d68a1e5
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
10 changes: 7 additions & 3 deletions interface/main/tabs/menu/menus/standard.json
Expand Up @@ -1989,7 +1989,7 @@
"requirement": 0,
"acl_req": [
"admin",
"batchcom"
"super"
]
},
{
Expand All @@ -1998,13 +1998,17 @@
"target": "rep",
"url": "/interface/reports/direct_message_log.php",
"children": [],
"requirement": 0
"requirement": 0,
"acl_req": [
"admin",
"super"
]
}
],
"requirement": 0,
"acl_req": [
"admin",
"batchcom"
"super"
]
}
],
Expand Down
6 changes: 6 additions & 0 deletions interface/reports/background_services.php
Expand Up @@ -12,7 +12,13 @@

require_once("../globals.php");

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

if (!AclMain::aclCheckCore('admin', 'super')) {
echo xlt('Not Authorized');
exit;
}
?>

<html>
Expand Down
6 changes: 6 additions & 0 deletions interface/reports/direct_message_log.php
Expand Up @@ -12,9 +12,15 @@

require_once("../globals.php");

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

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

if (!empty($_POST)) {
if (!CsrfUtils::verifyCsrfToken($_POST["csrf_token_form"])) {
CsrfUtils::csrfNotVerified();
Expand Down
10 changes: 7 additions & 3 deletions sites/default/documents/custom_menus/Custom.json
Expand Up @@ -1989,7 +1989,7 @@
"requirement": 0,
"acl_req": [
"admin",
"batchcom"
"super"
]
},
{
Expand All @@ -1998,13 +1998,17 @@
"target": "rep",
"url": "/interface/reports/direct_message_log.php",
"children": [],
"requirement": 0
"requirement": 0,
"acl_req": [
"admin",
"super"
]
}
],
"requirement": 0,
"acl_req": [
"admin",
"batchcom"
"super"
]
}
],
Expand Down

0 comments on commit d68a1e5

Please sign in to comment.