Merged mward/5.2.n-repo1544-update-self (5.2.1) to 5.2.N (5.2.1)

132959 mward: REPO-1544: added error message (review: CR-620)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132998 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Matt Ward
2016-11-22 10:26:35 +00:00
parent af14559c74
commit 02d9631a18

View File

@@ -542,7 +542,7 @@ public class PeopleImpl implements People
// Non-admin users can update their own password, but must provide their current password.
if (person.getOldPassword() == null)
{
throw new PermissionDeniedException();
throw new PermissionDeniedException("Existing password is required, but missing (filed 'oldPassword').");
}
char[] oldPassword = person.getOldPassword().toCharArray();
try