Commit a1a82c66 by Aurel

Check that the reference input by user is not already defined in acl-users folders

1 parent 98d2211f
......@@ -60,6 +60,11 @@ for reference in reference_list:\n
portal = context.getPortalObject()\n
reference = editor\n
\n
# check this is a not a reference from acl_user\n
if portal.acl_users.getUserById(reference) is not None or \\\n
portal.aq_parent.acl_users.getUserById(reference) is not None:\n
return 0\n
\n
# ... then check already created accounts\n
if portal.portal_catalog.getResultValue(\n
reference = reference, \n
......
547
\ No newline at end of file
548
\ No newline at end of file
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!