stable

Clone or download

Read-only

Do not display xRef for unreadable frs release

This is part of story #17180 take into account gitlab commits How to test: - Have a frs release - Have 4 users (or change permission for each test) -> User A can't see FRS plugin -> User B can see FRS Plugin but can't see package but can see release -> User C can see FRS Plugin, can see package but can't see release -> User D can see FRS plugin, can see package and can see release - Create cross reference with this frs release in an artifact (for example: release #25) Expected results: - Only user D can see the xRef with this release - If the release is hidden or its package is hidden, => User D can't see the xRef Change-Id: I1d711b8b0535a821cf38b215429298712788d4ac

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_CrossReferences.php +6 −0 Go to diff View file
M src/common/Reference/ByNature/CrossReferenceByNatureInCoreOrganizer.php +13 −2 Go to diff View file
A src/common/Reference/ByNature/FRS/CrossReferenceFRSOrganizer.php +101 −0 Go to diff View file
M tests/unit/common/Reference/ByNature/CrossReferenceByNatureInCoreOrganizerTest.php +27 −0 Go to diff View file
A tests/unit/common/Reference/ByNature/FRS/CrossReferenceFRSOrganizerTest.php +273 −0 Go to diff View file