jxrrdan / legalise.github.io

Legal system created purely out of JS, HTML, CSS, PHP and a mySQL database.
https://legal.dougbros.co.uk
0 stars 0 forks source link

Create user role switching functionality #5

Open jxrrdan opened 4 years ago

jxrrdan commented 4 years ago

Currently there is only one piece of functionality, create a case and view a case. Based on a users role, they should be able to create, view and update/leave a note on a case. For the meantime, this will be hard-coded (system defined) based on the user roles as to what a user can do. View Only - does what it says on the tin, can only "open" cases. Advisor - can "open" and "leave a note" on cases. Administrator - can "create", "open", "leave notes" and "update" case data. System Administrator - can "create", "open", "leave notes", "update" case data and configure various system settings.