SORMAS-Foundation / SORMAS-Project

SORMAS (Surveillance, Outbreak Response Management and Analysis System) is an early warning and management system to fight the spread of infectious diseases.
https://sormas.org
GNU General Public License v3.0
293 stars 143 forks source link

External visits user role prevents viewing tasks #4351

Closed maxiheyner closed 3 years ago

maxiheyner commented 3 years ago

Bug Description

Holding the external visits user role leads to a complete loss of the tasks at the task management view. Self assigned tasks, as well as tasks of other users are not shown in the task management.

Steps to Reproduce

  1. Create a user that holds the external visits user role (plus contact supervisor, clinician, surveillance supervisor)
  2. Create a task and assign it to this above mentioned user
  3. Login with user (1.) and take a look at the task management view
  4. Login as admin and remove the external visits user role from user (1.)
  5. Login with user (1.) and take a look at the task management view

Expected Behavior

Since the external visits user role is not coupled to any user right, the person holding this role (plus e.g. contact supervisor, clinician, surveillance supervisor) should be able to see all user-related tasks, as well as tasks assigned to other users.

Screenshots

The user holds the "external visits user" role

image

and is not able to see self assigned tasks, as well as tasks of other users

image

Removing the role of the external visits user...

image

enables the view all tasks and...

image

self assigned tasks.

image

System Details

Additional Information

MateStrysewske commented 3 years ago

@maxiheyner The external visits user is not supposed to be a user of the SORMAS application. Its sole purpose is for authentication with the interface that allows to push information from external symptom diaries/journals to the SORMAS database.