]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - security/runtime/org.argeo.security.jackrabbit/src/main/java/org/argeo/security/jackrabbit/ArgeoSecurityManager.java
Big cleanup of the security layers
[lgpl/argeo-commons.git] / security / runtime / org.argeo.security.jackrabbit / src / main / java / org / argeo / security / jackrabbit / ArgeoSecurityManager.java
index 8f2632d0ff0ccf0445c968a86f8b4e771c36c58b..2153e0e94025c7d96ab3daad787df5612a4be228 100644 (file)
@@ -36,8 +36,6 @@ import org.springframework.security.GrantedAuthority;
 
 /** Intermediary class in order to have a consistent naming in config files. */
 public class ArgeoSecurityManager extends DefaultSecurityManager {
-       public final static String HOME_BASE_PATH = "/home";
-
        private Log log = LogFactory.getLog(ArgeoSecurityManager.class);
 
        @Override
@@ -142,8 +140,7 @@ public class ArgeoSecurityManager extends DefaultSecurityManager {
                        try {
                                userHome = JcrUtils.getUserHome(getSystemSession(), userId);
                                if (userHome == null) {
-                                       userHome = JcrUtils.createUserHome(getSystemSession(),
-                                                       HOME_BASE_PATH, userId);
+                                       userHome = JcrUtils.createUserHomeIfNeeded(getSystemSession(), userId);
                                        //log.warn("No home available for user "+userId);
                                        return;
                                }