@@ -600,7 +600,7 @@ public void deleteArtifactsInGroup(String groupId) {
600
600
601
601
@ Override
602
602
@ Audited (extractParameters = {"0" , KEY_GROUP_ID , "1" , KEY_IF_EXISTS , "2" , KEY_CANONICAL , "3" , "dryRun" })
603
- @ Authorized (style = AuthorizedStyle .GroupOnly , level = AuthorizedLevel .Write )
603
+ @ Authorized (style = AuthorizedStyle .GroupOnly , level = AuthorizedLevel .Write , dryRunParam = 3 )
604
604
public CreateArtifactResponse createArtifact (String groupId , IfArtifactExists ifExists , Boolean canonical , Boolean dryRun , CreateArtifact data ) {
605
605
requireParameter ("groupId" , groupId );
606
606
if (data .getFirstVersion () != null ) {
@@ -763,7 +763,7 @@ public VersionSearchResults listArtifactVersions(String groupId, String artifact
763
763
764
764
@ Override
765
765
@ Audited (extractParameters = {"0" , KEY_GROUP_ID , "1" , KEY_ARTIFACT_ID , "2" , "dryRun" })
766
- @ Authorized (style = AuthorizedStyle .GroupAndArtifact , level = AuthorizedLevel .Write )
766
+ @ Authorized (style = AuthorizedStyle .GroupAndArtifact , level = AuthorizedLevel .Write , dryRunParam = 2 )
767
767
public VersionMetaData createArtifactVersion (String groupId , String artifactId , Boolean dryRun , CreateVersion data ) {
768
768
requireParameter ("content" , data .getContent ());
769
769
requireParameter ("groupId" , groupId );
0 commit comments