continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r328168 - /maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/InitializationChecker.java
Date Mon, 24 Oct 2005 22:20:39 GMT
Author: evenisse
Date: Mon Oct 24 15:20:34 2005
New Revision: 328168

URL: http://svn.apache.org/viewcvs?rev=328168&view=rev
Log:
Fix NPE when admin doesn't allow guest users

Modified:
    maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/InitializationChecker.java

Modified: maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/InitializationChecker.java
URL: http://svn.apache.org/viewcvs/maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/InitializationChecker.java?rev=328168&r1=328167&r2=328168&view=diff
==============================================================================
--- maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/InitializationChecker.java
(original)
+++ maven/continuum/trunk/continuum-web/src/main/java/org/apache/maven/continuum/web/action/InitializationChecker.java
Mon Oct 24 15:20:34 2005
@@ -159,7 +159,9 @@
         }
         else
         {
-            UserGroup guestGroup = store.getUserGroup( "guest" );
+            configuration.setGuestAccountEnabled( false );
+
+            UserGroup guestGroup = store.getUserGroup( ContinuumSecurity.GUEST_GROUP_NAME
);
 
             guestGroup.setPermissions( null );
 



Mime
View raw message