Make user/anonymous semantics more consistent with Authorization
[lgpl/argeo-commons.git] / org.argeo.node.api / src / org / argeo / node / security / NodeSecurityUtils.java
index fd01cc6c6c63a6c0a56483230278334220016429..7c784b0dc39f6032840989e94e5f8670c5e57d4b 100644 (file)
@@ -33,8 +33,8 @@ public class NodeSecurityUtils {
        }
 
        public static void checkImpliedPrincipalName(LdapName roleName) throws IllegalArgumentException {
-               if (ROLE_USER_NAME.equals(roleName) || ROLE_ANONYMOUS_NAME.equals(roleName))
-                       throw new IllegalArgumentException(roleName + " cannot be listed as role");
+//             if (ROLE_USER_NAME.equals(roleName) || ROLE_ANONYMOUS_NAME.equals(roleName))
+//                     throw new IllegalArgumentException(roleName + " cannot be listed as role");
        }
 
 }