Loris
Loris copied to clipboard
[issue_tracker] Fix typo & Cleanup close permission
Brief summary of changes
This PR modifies the code in modules/issue_tracker/php/edit.class.inc where the drop-down values are set to accommodate for the new permissions that were added in 27. With this code, the "close" option is added to the statuses drop-down in cases where a user has the appropriate permission to close the current issue, and it is not added otherwise.
This PR also fixes a typo in a variable from hasPartialAcess to hasPartialAccess
- [ ] Have you updated related documentation?
Testing instructions (if applicable)
- Grant a user the "own issue" Issue tracker permission
- Ensure that the user can only view and close their own issues
- Add the permission to view all issues to the user
- They should now be able to view all issues, but still only able to close their own
- Add the permission to close own sites' issues to the user
- They should now be able to view all issues, but only close issues from their sites
- Add the permission to close all issues
- The user should now be able to close all issues, including issues at sites that they do not have.
Link(s) to related issue(s)
- Resolves #NO ISSUE
@CamilleBeau update description to have more details
LGTM