Process Manager Granular Permissions #8552
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.





Issue & Reproduction Steps
As a Process Manager, I want to be able to reassign tasks, create custom inbox rules, and oversee all tasks assigned across my team without requiring Admin permissions or being assigned to any task in the process.
Solution
Note
With this middleware, user permissions are dynamically modified, and the permissions needed by the endpoints that are previously listed in the cache are placed so that validation continues, and after executing the request, that permission is removed.
How to Test
Check the list Process I Manage and it should work correctly without giving permission errors on the endpoints.
Related Tickets & Packages
Code Review Checklist
ci:package-savedsearch:task/FOUR-26776
[FOUR-26776]: https://processmaker.atlassian.net/browse/FOUR-26776?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ