die("You must first set up library/acl.inc to use phpGACL!"); } //Collect the ACL ID numbers. echo "<B>Checking to ensure all the proper ACL(access control list) are present:</B></BR>"; //Get Administrator ACL ID number $admin_write = getAclIdNumber('Administrators', 'write'); //Get Doctor ACL ID Number $doc_write = getAclIdNumber('Physicians', 'write'); //Get Clinician ACL with write access ID number $clin_write = getAclIdNumber('Clinicians', 'write'); //Get Clinician ACL with addonly access ID number $clin_addonly = getAclIdNumber('Clinicians', 'addonly'); //Get Receptionist ACL ID number $front_write = getAclIdNumber('Front Office', 'write'); //Get Accountant ACL ID number $back_write = getAclIdNumber('Accounting', 'write'); //Add new object Sections echo "<BR/><B>Adding new object sections</B><BR/>"; //Add 'Sensitivities' object section (added in 2.8.2) addObjectSectionAcl('sensitivities', 'Sensitivities'); //Add 'Lists' object section (added in 3.0.2) addObjectSectionAcl('lists', 'Lists'); //Add 'Placeholder' object section (added in 3.0.2) addObjectSectionAcl('placeholder', 'Placeholder'); //Add 'Nation Notes' object section (added in 4.1.0) addObjectSectionAcl('nationnotes', 'Nation Notes'); //Add 'Patient Portal' object section (added in 4.1.0) addObjectSectionAcl('patientportal', 'Patient Portal'); //Add new Objects echo "<BR/><B>Adding new objects</B><BR/>"; //Add 'Normal' sensitivity object, order variable is default 10 (added in 2.8.2)
addNewACL('Accounting', 'back', 'view', 'Things that back office can only read'); //Update the ACLs echo "<BR/><B>Updating the ACLs(Access Control Lists)</B><BR/>"; //DONE with upgrading to this version $acl_version = $upgrade_acl; } // Upgrade for acl_version 3 $upgrade_acl = 3; if ($acl_version < $upgrade_acl) { echo "<B>UPGRADING ACCESS CONTROLS TO VERSION " . $upgrade_acl . ":</B></BR>"; //Collect the ACL ID numbers. echo "<B>Checking to ensure all the proper ACL(access control list) are present:</B></BR>"; //Get Administrator ACL ID number $admin_write = getAclIdNumber('Administrators', 'write'); //Get Emergency ACL ID number $emergency_write = getAclIdNumber('Emergency Login', 'write'); //Add new object Sections echo "<BR/><B>Adding new object sections</B><BR/>"; //Add 'Menus' object section (added in 4.1.3) addObjectSectionAcl('menus', 'Menus'); //Add new Objects echo "<BR/><B>Adding new objects</B><BR/>"; //Add 'modules' object (added in 4.1.3) addObjectAcl('menus', 'Menus', 'modle', 'Modules'); //Update already existing Objects echo "<BR/><B>Upgrading objects</B><BR/>"; //Add new ACLs here (will return the ACL ID of newly created or already existant ACL) // (will also place in the appropriate group and CREATE a new group if needed) echo "<BR/><B>Adding ACLs(Access Control Lists) and groups</B><BR/>"; //Update the ACLs echo "<BR/><B>Updating the ACLs(Access Control Lists)</B><BR/>";