Access control improvements. (#530)
commite991638a2631b33fbbe79149ae74148f0cc989d2
authorRod Roark <rod@sunsetsystems.com>
Wed, 8 Mar 2017 06:12:40 +0000 (7 22:12 -0800)
committerGitHub <noreply@github.com>
Wed, 8 Mar 2017 06:12:40 +0000 (7 22:12 -0800)
tree997168a858aa031a334001c2cf1cf827b52230f2
parent151b229894457a72cebf7def919632dc586ace4a
Access control improvements. (#530)

Added these ACOs in the "patients" section:
  reminder    Patient Reminders (write,addonly optional)
  alert       Clinical Reminders/Alerts (write,addonly optional)
  disclosure  Disclosures (write,addonly optional)
  rx          Prescriptions (write,addonly optional)
  amendment   Amendments (write,addonly optional)
  lab         Lab Results (write,addonly optional)

Also added code, mostly in the demographics summary, to enforce these and some others.
Also modified acl.inc to always give the superuser access to everything.
Also updated menu code to disable items that the user does not have permission for.
12 files changed:
acl_setup.php
acl_upgrade.php
interface/main/left_nav.php
interface/main/tabs/js/menu_analysis.js
interface/main/tabs/menu/menu_data.php
interface/main/tabs/menu/menu_json.php
interface/main/tabs/menu/menu_updates.php
interface/patient_file/summary/demographics.php
interface/patient_file/summary/disc_fragment.php
interface/patient_file/summary/pnotes_fragment.php
library/acl.inc
version.php