SORMAS-Project icon indicating copy to clipboard operation
SORMAS-Project copied to clipboard

Logging in as a Clinician opens a Case Supervisor session

Open Christophe-SF opened this issue 7 months ago • 2 comments

Bug Description

When selecting the Clinician role from the user selection page the demo opens a Case Supervisor session.

Image Image

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

Christophe-SF avatar Jul 21 '25 10:07 Christophe-SF

changing to P1 to represent potential inclusion for sprint 8

SORMAS-EmelineJanigan avatar Jul 29 '25 15:07 SORMAS-EmelineJanigan

@roldy please check if this is still happening, i think it was fixed, but if it is not pls fix

SORMAS-EmelineJanigan avatar Dec 09 '25 15:12 SORMAS-EmelineJanigan

Looking at the code, I found:

  1. The DefaultEntityHelper file defines 13 default users, but none of them are a district or regional level "Clinician"
  2. The DefaultUserRole defines a NATIONAL_CLINICIAN role with national
    jurisdiction level
  3. There is no district-level or facility-level clinician role defined
  4. 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?

roldy avatar Dec 18 '25 09:12 roldy