3 // Ensure this script is not called separately
4 if ($aclSetupFlag !== true) {
5 die(function_exists('xlt') ?
xlt('Authentication Error') : 'Authentication Error');
8 use OpenEMR\Common\Acl\AclExtended
;
10 return $ACL_UPGRADE = array(
12 '0.2.0' => function () {
13 $physicians_write = AclExtended
::getAclIdNumber('Physicians', 'write');
14 $accounting_view = AclExtended
::getAclIdNumber('Accounting', 'view');
15 AclExtended
::addObjectAcl('pfeh', 'Information', 'info_m', 'Information');
17 AclExtended
::updateAcl($physicians_write, 'Physicians', 'pfeh', 'Information', 'info_m', 'Information', 'write');
19 AclExtended
::updateAcl($accounting_view, 'Accounting', 'pfeh', 'Information', 'info_m', 'Information', 'write');
20 AclExtended
::updateAcl($accounting_view, 'Accounting', 'pfeh', 'Fields Filter', 'field_filter', 'Fields Filter', 'write');
21 AclExtended
::updateAcl($accounting_view, 'Accounting', 'pfeh', 'Hook Filter', 'hooks', 'Hook Filter', 'write');
22 AclExtended
::updateAcl($accounting_view, 'Accounting', 'pfeh', 'Parameters', 'params', 'Parameters', 'write');
24 '0.2.1' => function () {
25 $physicians_write = AclExtended
::getAclIdNumber('Physicians', 'write');
26 $accounting_view = AclExtended
::getAclIdNumber('Accounting', 'view');
28 AclExtended
::addObjectAcl('pfeh', 'Cards', 'cards', 'Cards');
29 AclExtended
::updateAcl($physicians_write, 'Physicians', 'pfeh', 'Cards', 'cards', 'Cards', 'write');
30 AclExtended
::updateAcl($accounting_view, 'Accounting', 'pfeh', 'Cards', 'cards', 'Cards', 'write');