Continue finalising security. Fix issues with login in web.
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / internal / kernel / HomeRepository.java
index 68acd2d62baa9086ceb1c257567fb50699d2f1f5..d73b554e8bda61354c55b09538716ca8858f4966 100644 (file)
@@ -14,7 +14,6 @@ import javax.naming.ldap.LdapName;
 import javax.security.auth.Subject;
 import javax.security.auth.login.LoginContext;
 
-import org.apache.jackrabbit.core.security.SecurityConstants;
 import org.argeo.cms.CmsException;
 import org.argeo.jcr.JcrRepositoryWrapper;
 import org.argeo.jcr.JcrUtils;
@@ -89,8 +88,8 @@ class HomeRepository extends JcrRepositoryWrapper implements KernelConstants {
                        return;
 //             if (session.getUserID().equals(AuthConstants.ROLE_KERNEL))
 //                     return;
-               if (session.getUserID().equals(SecurityConstants.ADMIN_ID))
-                       return;
+//             if (session.getUserID().equals(SecurityConstants.ADMIN_ID))
+//                     return;
 
                if (checkedUsers.contains(username))
                        return;