SORMAS-Project
                                
                                 SORMAS-Project copied to clipboard
                                
                                    SORMAS-Project copied to clipboard
                            
                            
                            
                        Sample can not be edited, deleted or saved
Bug Description
Samples cannot be edited, saved or deleted. The fields are not accessible and the buttons are inactive.
The behavior is observed in diverse automatic test since September 15th.
A further check has shown: By adding the appropriate user rights the bottons are shown. But they are inactive.
Steps to Reproduce
- Select or create a user who has all the rights in the Sample Testing section.
- Create a Case
- Add a "New Sample"
- Open this Sample and try to work with it
Expected Behavior
The fields should be editable and the buttons should be active.
Screenshots
Admin
 
 BeKe
BeKe
 


System Details
- Device: Laptop
- SORMAS version: 1.76.0
- Android version/Browser: Chrom and automated tests
- Server URL: test-de and test-auto
- User Role: Admin
Additional Information
The behavior was confirmed on test-de with the user BeKe and changed user rights.
This issue was discovered last week and at first it was thought that it might have been caused by ticket #9693, that's why we didn't open a new issue for this yet.
LE: I talked to @JonasCir and the issue is probably not caused by #9693, so the new ticket is in order.
Have the samples been created by the user you're using? Are they in the same jurisdiction as the user jurisdiction, if the user has a jurisdiction at all (I guess not since it's got the Admin user role)? Does the user have the user rights to see personal/sensitive data?
@roxanamlendea Please recheck wether this can be closed because it's covered by https://github.com/hzi-braunschweig/SORMAS-Project/issues/9693
The samples were each created with the same user. I repeated the test with my user. For this purpose he got the right "Create new sample". The behavior in still present. I did not change the case or the user between saving and editing. The Admin has the Rolls Administrator and National User. At the National Use and me individuell roll "See personal / sensitive date in jurisdiction" are active.
Hey I take a look at this issue myself: https://github.com/hzi-braunschweig/SORMAS-Project/issues/9693 did not change any logic and was re-reviewed twice now, so I would suggest we keep it closed and I investigate this issue on its own.
can reproduce, I'm investigating
PR is up
Validated on test.sormas on Version: 1.76.0-SNAPSHOT (cfb8bd9) Samples can be created/deleted/edited with any user with rights.
- checked users with/without Sample testing rights
- checked behavior with user having a custom user role with different configurations (checking various access restrictions).
