Describe the bug
Verify that if the editor does not have permission 'Across all sites add and edit users' then the site drop-down list is populated with the editor's associated sites, otherwise all sites are displayed.
This is failing
To Reproduce
I'm not able to reproduce this on my VM.
john with permission "User Management", site "Ottawa", Project "Rye" and no other permissions, sites, or projectsjohn, go to User Accounts > Add Useredit_user page, this is displayed as Site and Project options for a new user:john
admin
I did notice that the Site filter from the user_accounts page displays all users across sites, however. Is that what you meant?
@johnsaigle Yes, that is what I meant.
It looks like this line should be deleted from the test plan.
It was added here https://github.com/aces/Loris/pull/4786/ to fix this issue https://github.com/aces/Loris/issues/4741. However, the issue doesn't mention anything about the Site field being pre-populated with the user's sites and I'm not sure this was ever a feature.
I also don't know if this is possible to do given the way the filter works. It's a dropdown, not a multi-select. So if a user has two sites, Montreal and Ottawa, there is no way to populate both of them at once within the site dropdown.
@johnsaigle In that case, as you mentioned the line should be deleted from test plan. Otherwise it will be confusing.
I can remove it now Actually we seem to have some interested contributors so I'll create a new issue for this and mark it as beginner friendly.
This can be closed when #6320 is merged.