MT - fix tenant domain validation when creating new users/persons

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8470 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2008-03-07 15:33:30 +00:00
parent 532a8e6d4c
commit 18a7f69241

View File

@@ -618,6 +618,9 @@ public class PersonServiceImpl implements PersonService,
{ {
String userName = DefaultTypeConverter.INSTANCE.convert(String.class, properties String userName = DefaultTypeConverter.INSTANCE.convert(String.class, properties
.get(ContentModel.PROP_USERNAME)); .get(ContentModel.PROP_USERNAME));
tenantService.checkDomainUser(userName);
properties.put(ContentModel.PROP_USERNAME, userName); properties.put(ContentModel.PROP_USERNAME, userName);
properties.put(ContentModel.PROP_SIZE_CURRENT, 0L); properties.put(ContentModel.PROP_SIZE_CURRENT, 0L);