Fixes #6504 Security Api Extension Event (#6511)
commita907cbc6340fdcaa59ba8367412a5dc038606c8f
authorStephen Nielson <snielson@discoverandchange.com>
Mon, 5 Jun 2023 13:04:26 +0000 (5 09:04 -0400)
committerGitHub <noreply@github.com>
Mon, 5 Jun 2023 13:04:26 +0000 (5 09:04 -0400)
tree071c3be5c382f785dd5bc45a17b5e053c165d6f0
parent8f8066895aa2a0099c36a52c2d5def088d91018c
Fixes #6504 Security Api Extension Event (#6511)

I add a new RestApiSecurityCheckEvent that allows module writers to
initiate their own security checks or replace the current OpenEMR API
security checks.

Fix a minor typo bug on the accessdenied exception in the globals.

I also add methods to the BaseService class to be able to get and set
the event dispatcher.
interface/globals.php
src/Common/Http/HttpRestRouteHandler.php
src/Events/RestApiExtend/RestApiSecurityCheckEvent.php [new file with mode: 0644]
src/Services/BaseService.php