Commit 8e27df66 authored by Vincent Pelletier's avatar Vincent Pelletier

BusinessConfiguration_validateCustomerUsername: Drop redundant code.

acl_users ERP5 user enumeration plugin(s) already search for Persons by
their user id, so this code duplicates the checks done just a few lines
above it.
parent d14b42d1
......@@ -13,12 +13,6 @@ if portal.acl_users.getUserById(reference) is not None or \
portal.aq_parent.acl_users.getUserById(reference) is not None:
return 0
# ... then check already created accounts
if portal.portal_catalog.getResultValue(
reference = reference,
portal_type = "Person") is not None:
return 0
# first check if a Business Configuration has not already "reserved" it
# through a Person Configuration Item which when build will create a real
# Nexedi ERP5 account.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment