stable

Clone or download

Read-only

Do not display xRef for unreadable news

part of: story #17180 take into account gitlab commits How to test: - Have an artifact referencing (or being referenced by) a private news and a public news in a public project --> A project member will see 2 cross references --> A non project member will see only the public one - Delete a news --> The cross reference is not displayed anymore for this news Change-Id: I3cb55b174abfbb3ec84a6eb6e337105ff4268c60

Modified Files

Name
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_CrossReferences.php +9 −0 Go to diff View file
A src/common/News/Exceptions/NewsNotFoundException.php +26 −0 Go to diff View file
A src/common/News/Exceptions/RestrictedNewsAccessException.php +26 −0 Go to diff View file
M src/common/News/NewsDao.php +16 −0 Go to diff View file
A src/common/News/NewsRetriever.php +58 −0 Go to diff View file
M src/common/Reference/ByNature/CrossReferenceByNatureInCoreOrganizer.php +11 −1 Go to diff View file
A src/common/Reference/ByNature/News/CrossReferenceNewsOrganizer.php +67 −0 Go to diff View file
M tests/unit/common/Reference/ByNature/CrossReferenceByNatureInCoreOrganizerTest.php +28 −0 Go to diff View file
A tests/unit/common/Reference/ByNature/News/CrossReferenceNewsOrganizerTest.php +163 −0 Go to diff View file