mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user