User search working on any location
Debug mode
- [X] I have enabled debug mode
- [X] I have read checked the Common Issues page
Describe the bug
When opening users tab on any location and typing something in search, all users appear in users view (with that search term). I tested this on demo app also. Only works if logged in user has user view permission. It shows all users regardless of company.
Reproduction steps
- Login into Snipe-IT (as user that has permission to view other users)
- Open any location
- Start typing anything into search bar
- All users start appearing (from all companies)
Expected behavior
Only users that are assigned to location should appear when searching
Screenshots
Snipe-IT Version
6.2.1
Operating System
Debian 11
Web Server
Apache 2.4.56
PHP Version
8.0.30
Operating System
Windows 10
Browser
Google Chrome
Version
118.0.5993.120
Device
No response
Operating System
No response
Browser
No response
Version
No response
Error messages
No response
Additional context
No response
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.