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
292 stars 140 forks source link

Open read view of case fragements, when user does not have access #2029

Open sergiupacurariu opened 4 years ago

sergiupacurariu commented 4 years ago

Feature Description

The mobile app prevents users from editing cases and contacts outside their jurisdiction #1647 and #1944

Problem Description

So far with issues #1647 and #1944 the functionality was implemented for cases and contacts but not all the situations are treated. The part left out is the situation when the user is allowed to edit contact list in order to be able to add more contacts and then comes back to a case screen from an Edit Activity. In this case the user will be able to edit fragments that is not allowed. The above described issue needs a generic implementation of user access permissions for activities and fragments.

Proposed Change

Only the logic to check whether the user can access the edit view should need to be implemented in the child elements. The permissions should be implemented in a generic way in base activities and fragments

JaquM-HZI commented 3 years ago

@sergiupacurariu is there still a need for this issue or can we close this one?

MateStrysewske commented 3 years ago

@JaquM Probably still relevant because we haven't done anything about this issue yet