stable

Clone or download

Read-only

Do not display svn cross reference in private projects

When you are not member of a private project, then svn revision are not accessible. The corresponding cross reference should not be displayed in the artifact. Implementation note: Instead of adding a dedicated "SubversionOrganizer" (like it has been done for News or Forum), we now check the project access for every cross references, even those which don't have a dedicated "organizer". This means that: Given any cross reference from/to an artifact When the user cannot access the target project Then the cross reference is not displayed Part of story #17180: take into account gitlab commits Change-Id: I10e2d822d9ac7edeb23bd0686d019d9f6b3c7d7c

Modified Files

Name
M plugins/docman/include/Reference/CrossReferenceDocmanOrganizer.php +0 −1 Go to diff View file
M plugins/docman/tests/unit/Reference/CrossReferenceDocmanOrganizerTest.php +0 −1 Go to diff View file
M plugins/git/include/Git/Reference/CrossReferenceGitOrganizer.php +0 −1 Go to diff View file
M plugins/git/tests/unit/Git/Reference/CrossReferenceGitOrganizerTest.php +3 −3 Go to diff View file
M plugins/gitlab/include/Reference/GitlabCrossReferenceOrganizer.php +0 −1 Go to diff View file
M plugins/gitlab/tests/unit/Reference/GitlabCrossReferenceOrganizerTest.php +0 −2 Go to diff View file
M plugins/hudson/include/Reference/HudsonCrossReferenceOrganizer.php +0 −1 Go to diff View file
M plugins/hudson/tests/unit/Reference/HudsonCrossReferenceOrganizerTest.php +2 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/CrossReference/CrossReferenceArtifactOrganizer.php +3 −12 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_CrossReferences.php +2 −3 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +0 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/CrossReference/CrossReferenceArtifactOrganizerTest.php +7 −32 Go to diff View file
M src/common/Reference/ByNature/ConcurrentVersionsSystem/CrossReferenceCvsOrganizer.php +0 −1 Go to diff View file
M src/common/Reference/ByNature/FRS/CrossReferenceFRSOrganizer.php +7 −13 Go to diff View file
M src/common/Reference/ByNature/Forum/CrossReferenceForumOrganizer.php +0 −4 Go to diff View file
M src/common/Reference/ByNature/News/CrossReferenceNewsOrganizer.php +3 −13 Go to diff View file
M src/common/Reference/ByNature/Wiki/CrossReferenceWikiOrganizer.php +0 −1 Go to diff View file
M src/common/Reference/CrossReferenceByDirectionPresenterBuilder.php +7 −0 Go to diff View file
M src/common/Reference/CrossReferenceByNatureOrganizer.php +14 −9 Go to diff View file
M tests/unit/common/Reference/ByNature/ConcurrentVersionsSystem/CrossReferenceCvsOrganizerTest.php +0 −1 Go to diff View file
M tests/unit/common/Reference/ByNature/FRS/CrossReferenceFRSOrganizerTest.php +1 −15 Go to diff View file
M tests/unit/common/Reference/ByNature/Forum/CrossReferenceForumOrganizerTest.php +0 −2 Go to diff View file
M tests/unit/common/Reference/ByNature/News/CrossReferenceNewsOrganizerTest.php +0 −25 Go to diff View file
M tests/unit/common/Reference/ByNature/Wiki/CrossReferenceWikiOrganizerTest.php +1 −1 Go to diff View file
M tests/unit/common/Reference/CrossReferenceByDirectionPresenterBuilderTest.php +2 −0 Go to diff View file
M tests/unit/common/Reference/CrossReferenceByNatureOrganizerTest.php +75 −13 Go to diff View file