1. OpenREM
  2. OpenREM
  3. OpenREM
  4. Issues

Issues

Issue #16 resolved

User authorisation/authentication

Ed McDonagh
created an issue

Needed to restrict access to all or some functions, particularly advanced functions such as direct import of data or deleting data.

Comments (19)

  1. Ed McDonagh reporter

    Base template now displays login or logout depending on is_authenticated, and links back to current page when authenticated including search strings. Propose to ditch the auth version of each page and incorporate in original instead. Refs #16.

    → <<cset 12d973bfe423>>

  2. Ed McDonagh reporter

    Need to have four levels of authorisation:

    • Not logged in - home page only
    • View level - modality filtered pages and study details pages (radiographer view)
    • Export level - as view, but allowed to export to spreadsheet and import pt size data (physics or researcher view)
    • Admin level - as export, but allowed to delete data (physics administrator view)
  3. Ed McDonagh reporter

    Added export function to standard CT filter template with if user.is_authenticated. Removed auth versions of templates, urls and views. Limited functionality now for a single authorisation level - need to introduce groups. Refs #16.

    → <<cset 01d6fd58242c>>

  4. Ed McDonagh reporter

    CT filter page functionality now depends on two variables admin.exportperms and admin.adminperms that get passed from the view. The setup of the variables is curretly a bit cluncky, but it does the job. Refs #16.

    → <<cset f72bc9f150a8>>

  5. Log in to comment