aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Stockhammer <m.stockhammer@web.de>2016-09-14 21:48:59 +0200
committerMartin Stockhammer <m.stockhammer@web.de>2016-09-14 21:48:59 +0200
commitd01764bed989abc53c20cb79723e59ae390f454a (patch)
treeadd77162c35c9e9f9de429ce315563d464b069aa
parentd82d39c3994dc1792d64e33377cb7162c26d5382 (diff)
downloadarchiva-d01764bed989abc53c20cb79723e59ae390f454a.tar.gz
archiva-d01764bed989abc53c20cb79723e59ae390f454a.zip
Changing upload permissions using parameter reference
Needs the new functionality in the redback annotations.
-rw-r--r--archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/FileUploadService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/FileUploadService.java b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/FileUploadService.java
index d95db3da5..cf21a30ba 100644
--- a/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/FileUploadService.java
+++ b/archiva-modules/archiva-web/archiva-web-common/src/main/java/org/apache/archiva/web/api/FileUploadService.java
@@ -70,7 +70,7 @@ public interface FileUploadService
@Path( "save/{repositoryId}/{groupId}/{artifactId}/{version}/{packaging}" )
@GET
@Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )
- @RedbackAuthorization( permissions = ArchivaRoleConstants.OPERATION_REPOSITORY_UPLOAD )
+ @RedbackAuthorization( resource = "{repositoryId}", permissions = ArchivaRoleConstants.OPERATION_REPOSITORY_UPLOAD )
Boolean save( @PathParam( "repositoryId" ) String repositoryId, @PathParam( "groupId" ) String groupId,
@PathParam( "artifactId" ) String artifactId, @PathParam( "version" ) String version,
@PathParam( "packaging" ) String packaging, @QueryParam( "generatePom" ) boolean generatePom )