From: Joakim Erdfelt Date: Mon, 15 Oct 2007 20:39:34 +0000 (+0000) Subject: [MRM-398] configure guest access by default for pre-configured repositories X-Git-Tag: archiva-1.0-beta-3~83 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e77cf5da222c7faacc5aa625563456fd3e15eea6;p=archiva.git [MRM-398] configure guest access by default for pre-configured repositories Reverted partially r584279. (some good fixes for related bugs in place) Introduced ArchivaConfiguration.isDefaulted() to aide SecuritySynchronization (startup task in archiva-webapp) to add guest user read-only roles if the configuration was set to default for some reason. git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@584903 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/MockConfiguration.java b/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/MockConfiguration.java index 08e4d2740..32d3ee3a6 100644 --- a/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/MockConfiguration.java +++ b/archiva-base/archiva-proxy/src/test/java/org/apache/maven/archiva/proxy/MockConfiguration.java @@ -97,4 +97,9 @@ public class MockConfiguration { configListeners.remove( listener ); } + + public boolean isDefaulted() + { + return false; + } }