vorburger commented on a change in pull request #639: Enhancement for FINERACT 
#516
URL: https://github.com/apache/fineract/pull/639#discussion_r331805730
 
 

 ##########
 File path: 
fineract-provider/src/main/java/org/apache/fineract/useradministration/service/AppUserWritePlatformServiceJpaRepositoryImpl.java
 ##########
 @@ -216,6 +217,28 @@ public CommandProcessingResult updateUser(final Long 
userId, final JsonCommand c
                clients = this.clientRepositoryWrapper.findAll(clientIds);
             }
 
+            final String passwordParamName = "password";
+            final String currentPasswordParamName = "currentPassword";
+            final String currentPasswordEncodedValue = 
command.passwordValueOfParameterNamed(currentPasswordParamName, 
platformPasswordEncoder,
+                        userToUpdate.getId());
+            AppUser currentUser = getAppUserIfPresent();
+
+            if (command.hasParameter(passwordParamName)) {
+            for(String id : currentUser.getRolesAsIdStringArray()) {
 
 Review comment:
   nit pick: Seems to have wrong indention?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to