"All users" option in overview for admin users does not show other admin users' links
Describe the bug Only the "owner" level user can see all links created by other users. Despite admin-level users having an option on the overview page for choosing whether to list "All users" or a specific user (like the owner-level user does), the "All users" option still only shows the current user's own links.
To Reproduce Steps to reproduce the behavior:
- As the "owner" user a. create a new link b. create two new "admin" users: test1 and test2
- Log out and back in as the new "test1" user (step 1b): a. the link created by the owner-level user in step 1a will not be listed b. click the user icon at the top, only two options will be available: "All users" and "test1" (the "test2" user is missing) c. create a new link d. verify that the only link listed is the one created in step 2c
- Log out and back in as the new "test2" user (step 1b): a. the link created by the owner-level user in step 1a will not be listed, nor will the link created by the "test1" user in step 2c b. click the user icon at the top, only two options will be available: "All users" and "test2" (the "test1" user is missing) c. create a new link d. verify that the only link listed is the one created in step 3c
- Switch back to the "owner" user and confirm that all three links from steps 1a, 2c, and 3c will be listed
Expected behavior Since an admin-level user has the user icon in the top just like the owner-level user, it should function the same as it does for the owner-level user; the dropdown should list other usernames, and choosing "All users" should actually list all users' links.
Screenshots I believe the descriptions above are clear enough to not require screenshots.
Desktop (please complete the following information): Not OS/browser specific
Additional context After opening this issue, I will make an attempt to identify the bug in the source, and then submit a pull request if it's something within my ability to fix...
I found this, which causes the query to only return "standard" users when an admin-level user makes the request: https://github.com/Lynx-Shortener/Lynx/blob/f3a06661b692d38b809fd033906fd89963c64d60/src/db/modules/link/list.js#L11-L17
I've updated the title of this issue to clarify that the "All users" option isn't completely non-functional as I originally described it, it just shows only standard-level users.
I believe admin-level users should be able to edit all links (including owner-level links), not just those of standard-level users. As it is, links created by admin-level users are untouchable except by the single owner-level account. I would expect that the purpose of having admin-level users is to relieve the owner-level user from day-to-day use of Lynx.