FOUR-12450: Filter only the Projects that belong to the User by estebangallego · Pull Request #5666 · ProcessMaker/processmaker
Issue & Reproduction Steps
Users without Project ownership can view all projects in the filter.
Steps to Reproduce:
- Log in with the admin user.
- Create several projects with the admin user.
- Log out.
- Log in with a different user.
- Create additional projects with the second user.
- Click on "Projects."
- Notice that all projects are visible, not just the ones created by the first user.
- Click on the project filter.
Current Behavior:
All created projects are displayed in the project filter, regardless of ownership.
Expected Behavior:
The filter should only display projects that belong to the logged-in user.
Solution
- Modify the filter to show only the projects that belong to the currently logged-in user.
How to Test
- Follow the reproduction steps.
- Ensure that the project filter exclusively displays projects associated with the logged-in user.
Related Tickets & Packages
- Observation FOUR-12450
ci:next
Code Review Checklist
- I have pulled this code locally and tested it on my instance, along with any associated packages.
- This code adheres to ProcessMaker Coding Guidelines.
- This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
- This solution fixes the bug reported in the original ticket.
- This solution does not alter the expected output of a component in a way that would break existing Processes.
- This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
- This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
- This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
- This ticket conforms to the PRD associated with this part of ProcessMaker.