Person pages of persons outside the user's jurisdiction are editable #11245
Labels
backend
Affects the web backend
change
A change of an existing feature (ticket type)
persons
vaadin-app
Affects the Vaadin application
Problem Description
Person pages are editable when the person and its associated entities are not within the user's jurisdiction, or created by that user.
Additionally, the cards on the side of the person page are editable as well, and the user can create new entities for a person that is not within their jurisdiction (this is not possible for instance if the user goes through the regular entity creation forms from each directory and uses the person search option).
The behavior was observed while testing for ticket #6053 but I could not determine exactly what caused it as ticket #10992 also mentions the person pages and when they should be editable or not.
Steps to Reproduce
Log in with an Admin+NatUser and create a new case (and person) and set the jurisdiction of both of them in:
Then copy the URL of the person created at step 1;
Log in the app with a user that has the same user rights but that is restricted by jurisdiction (e.g. Region - Berlin);
Paste the link copied and observe the person page.
Actual Behavior
The person page is editable and the user can create new entities for that person. When navigating to the case associated with that person (created at step 1) it can be observed that the case is editable since it is not within this user's jurisdiction.
Expected Behavior
The person page and the associated cards should not be editable if the user does not have edit access to any non-deleted entity that is connected to this person (the information on the cards should be visible and the user should be able to open the associated entities, but the creation buttons on the cards should either not be visible or should not be clickable).
@MateStrysewske perhaps you would be able to provide some insight into what the expected behavior here should be.
Screenshots
GIF of the behavior:
System Details
Additional Information
The text was updated successfully, but these errors were encountered: