]> source.dussan.org Git - archiva.git/commitdiff
[MRM-398] configure guest access by default for pre-configured repositories
authorJoakim Erdfelt <joakime@apache.org>
Mon, 15 Oct 2007 20:39:42 +0000 (20:39 +0000)
committerJoakim Erdfelt <joakime@apache.org>
Mon, 15 Oct 2007 20:39:42 +0000 (20:39 +0000)
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@584906 13f79535-47bb-0310-9956-ffa450edef68

archiva-base/archiva-indexer/src/test/java/org/apache/maven/archiva/indexer/MockConfiguration.java

index d4a123a625a5fa3bc75666bb6517d45a801d5eff..89f19599c08e444e78c86a154bcfe86bb9784827 100644 (file)
@@ -96,4 +96,9 @@ public class MockConfiguration implements ArchivaConfiguration
     {
         configListeners.remove( listener );
     }
+    
+    public boolean isDefaulted()
+    {
+        return false;
+    }
 }