REPO-1660: REST API - update person should also accept "-me-"

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@133997 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2016-12-22 09:28:25 +00:00
parent 0bb9f231ad
commit 9164399615
2 changed files with 26 additions and 7 deletions

View File

@@ -157,7 +157,13 @@ public class PeopleImpl implements People
{
this.thumbnailService = thumbnailService;
}
/**
* Validate, perform -me- substitution and canonicalize the person ID.
*
* @param personId
* @return The validated and processed ID.
*/
public String validatePerson(String personId)
{
return validatePerson(personId, false);
@@ -555,6 +561,8 @@ public class PeopleImpl implements People
public Person update(String personId, final Person person)
{
// Validate, perform -me- substitution and canonicalize the person ID.
personId = validatePerson(personId);
validateUpdatePersonData(person);
boolean isAdmin = isAdminAuthority();