adamsaghy commented on code in PR #4433:
URL: https://github.com/apache/fineract/pull/4433#discussion_r1987658454


##########
fineract-core/src/main/java/org/apache/fineract/commands/domain/CommandWrapper.java:
##########
@@ -201,7 +201,7 @@ public boolean isNoteResource() {
     }
 
     public boolean isUpdateOfOwnUserDetails(final Long loggedInUserId) {
-        return isUserResource() && isUpdate() && 
loggedInUserId.equals(this.entityId);
+        return isUserResource() && (isUpdate() || isChangePasswordOperation()) 
&& loggedInUserId.equals(this.entityId);

Review Comment:
   `isUpdate()` is not enough here? I wonder changing password is an update 
operation...



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to