Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite custom_field_distinct_values() to retrieve only those values that are accessible by the user, according to either issue view permission, or custom field definition for view access level. Only values that are viewable by the user should be retrieved, so we must account for: - View issue permissions: if the issue is private or public. - Project level permissions: if a private project is accessible directly, or indirectly. - Limit view issues for reporters: if the option is enabled. - Custom field definition for viewing threshold Viewable issues can be resolved by using a filter, which already accounts for those restrictions. So here we only need to additionally check for custom field view threshold on each project. Fixes: #16359
- Loading branch information
Showing
1 changed file
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters