diff options
author | Olivier Lamy <olamy@apache.org> | 2012-02-26 16:58:30 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-02-26 16:58:30 +0000 |
commit | 2538f012b5aa9cea3774be1016c481eb37b306da (patch) | |
tree | 60d9008a45186d96b6cdcd602703e2317cf9c747 /archiva-modules/archiva-web/archiva-rest | |
parent | bd98d2d274d376473b14764abb15e60c53fbd03f (diff) | |
download | archiva-2538f012b5aa9cea3774be1016c481eb37b306da.tar.gz archiva-2538f012b5aa9cea3774be1016c481eb37b306da.zip |
authz not mandatory for search: repositories list limited for guest
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1293870 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java index 6ee916a39..4f6f06e95 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/services/SearchService.java @@ -48,7 +48,7 @@ public interface SearchService @Path( "quickSearch" ) @GET @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } ) - @RedbackAuthorization( noPermission = true, noRestriction = false ) + @RedbackAuthorization( noPermission = true, noRestriction = true ) /** * <b>search will be apply on all repositories the current user has karma</b> */ @@ -58,7 +58,7 @@ public interface SearchService @Path( "getArtifactVersions" ) @GET @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } ) - @RedbackAuthorization( noPermission = true, noRestriction = false ) + @RedbackAuthorization( noPermission = true, noRestriction = true ) /** * <b>search will be apply on all repositories the current user has karma</b> */ @@ -70,7 +70,7 @@ public interface SearchService @Path( "searchArtifacts" ) @POST @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } ) - @RedbackAuthorization( noPermission = true, noRestriction = false ) + @RedbackAuthorization( noPermission = true, noRestriction = true ) /** * If searchRequest contains repositories, the search will be done only on those repositories. * <b>if no repositories, the search will be apply on all repositories the current user has karma</b> |