mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fix for MNT-11408 - change to use the only 'safe' Thor only codepath to avoid early THOR data hack from THOR-293
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@69652 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -57,9 +57,12 @@ public class UsernamePropertyDecorator extends BasePropertyDecorator
|
||||
JSONObject map = new JSONObject();
|
||||
map.put("userName", username);
|
||||
|
||||
NodeRef personRef = this.personService.getPersonOrNull(username);
|
||||
if (personRef != null)
|
||||
// DO NOT change this to just use getPersonOrNullImpl
|
||||
// - there is Cloud THOR prod hack see personServiceImpl.personExists
|
||||
// - and THOR-293
|
||||
if (this.personService.personExists(username))
|
||||
{
|
||||
NodeRef personRef = this.personService.getPerson(username, false);
|
||||
firstName = (String)this.nodeService.getProperty(personRef, ContentModel.PROP_FIRSTNAME);
|
||||
lastName = (String)this.nodeService.getProperty(personRef, ContentModel.PROP_LASTNAME);
|
||||
}
|
||||
|
Reference in New Issue
Block a user