-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Screen.Recording.2022-11-04.at.12.56.45.PM.mp4
I tried to grant collection access to all collections for a user (ksearcy) in the herb_umass database. This resulted in a prompt asking for me to assign agents for all collections. Once I did, the dialog would not disappear. I then tried to save the record and was unable. Refreshing showed that the changes were not saved.
https://herbumass-testability.test.specifysystems.org/specify/security/user/2/
testability, macOS, chrome
From @melton-jason:
As far as I can tell, the agents are correctly associated to the user (https://paris.specifycloud.org/api/specify_rows/agent/?fields=lastname,division&specifyuser=1) and the user can access each Division, it's just the frontend that is not displaying the information.
It looks like the frontend has the same erroneous assumption as the backend that a SpecifyUser will have only one Agent associated with it.
Frontend:
specify7/specifyweb/frontend/js_src/lib/components/Security/UserHooks.tsx
Lines 150 to 158 in 5ba1eeb
? fetchCollection( 'Agent', { limit: 1, specifyUser: userId, domainFilter: false, }, backendFilter('division').…
Metadata
Metadata
Assignees
Labels
Type
Projects
Status