Logging in as a Clinician opens a Case Supervisor session
Bug Description
When selecting the Clinician role from the user selection page the demo opens a Case Supervisor session.
Reproduction Steps
1.Go to the server page (Demo, test servers) 2.Select Clinician 3. Open the session ...
Expected Behavior
Should open the session as a clinician
Affected Area(s)
Web app
SORMAS Version
s
Android version/Browser
chromium
User Role(s)
clinician
Server URL
No response
Additional Information
No response
changing to P1 to represent potential inclusion for sprint 8
@roldy please check if this is still happening, i think it was fixed, but if it is not pls fix
Looking at the code, I found:
- The DefaultEntityHelper file defines 13 default users, but none of them are a district or regional level "Clinician"
- The DefaultUserRole defines a NATIONAL_CLINICIAN role with national
jurisdiction level - There is no district-level or facility-level clinician role defined
- The demologinmain.html file name is set to "Clinician" but it actually points to a Case Supervisor "user"
This means a "Clinician" user at the district or facility level does not exist and the login page just uses "Clinician" to refer to the Case Supervisor.
The question now becomes: 1 - Should the login page be renamed? 2 - Or do we have to create a custom user with clinician privileges?