From 177c00556dc7ce196900af6200bc6fe9fb294266 Mon Sep 17 00:00:00 2001 From: Ben Alex Date: Tue, 16 Nov 2004 12:22:43 +0000 Subject: [PATCH] Support just creating the acl_object_identity, without necessarily an acl_permission as well. --- .../acegisecurity/acl/basic/jdbc/JdbcExtendedDaoImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/main/java/org/acegisecurity/acl/basic/jdbc/JdbcExtendedDaoImpl.java b/core/src/main/java/org/acegisecurity/acl/basic/jdbc/JdbcExtendedDaoImpl.java index e702e3c5da..f845c27974 100644 --- a/core/src/main/java/org/acegisecurity/acl/basic/jdbc/JdbcExtendedDaoImpl.java +++ b/core/src/main/java/org/acegisecurity/acl/basic/jdbc/JdbcExtendedDaoImpl.java @@ -232,6 +232,12 @@ public class JdbcExtendedDaoImpl extends JdbcDaoImpl // Create acl_object_identity record if required createAclObjectIdentityIfRequired(basicAclEntry); + // Only continue if a recipient is specifed (null recipient indicates + // just wanted to ensure the acl_object_identity was created) + if (basicAclEntry.getRecipient() == null) { + return; + } + // Retrieve acl_object_identity record details AclDetailsHolder aclDetailsHolder = lookupAclDetailsHolder(basicAclEntry .getAclObjectIdentity());