diff options
author | Martin Stockhammer <m.stockhammer@web.de> | 2016-09-14 21:49:30 +0200 |
---|---|---|
committer | Martin Stockhammer <m.stockhammer@web.de> | 2016-09-14 21:49:30 +0200 |
commit | de3eb83242b42d75546670e8859cdb1f59fe4fa6 (patch) | |
tree | 047a0d2cebc7262b765a4e09eb7fc665d3948241 /archiva-modules/archiva-web/archiva-web-common/src | |
parent | d01764bed989abc53c20cb79723e59ae390f454a (diff) | |
download | archiva-de3eb83242b42d75546670e8859cdb1f59fe4fa6.tar.gz archiva-de3eb83242b42d75546670e8859cdb1f59fe4fa6.zip |
Adding restricted view for user managable repositories
Adds additional rest method to list the repositories where the user
has manage permissions.
Restricts the view for uploads to only managable repositories.
Diffstat (limited to 'archiva-modules/archiva-web/archiva-web-common/src')
-rw-r--r-- | archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/security/UserRepositoriesStub.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/security/UserRepositoriesStub.java b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/security/UserRepositoriesStub.java index 485d4a718..3cd2dad11 100644 --- a/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/security/UserRepositoriesStub.java +++ b/archiva-modules/archiva-web/archiva-web-common/src/test/java/org/apache/archiva/security/UserRepositoriesStub.java @@ -88,4 +88,9 @@ public class UserRepositoriesStub { return Collections.emptyList(); } + + @Override + public List<ManagedRepository> getManagableRepositories(String principal) throws ArchivaSecurityException, AccessDeniedException, PrincipalNotFoundException { + return Collections.emptyList(); + } } |