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


##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/domain/AuditorAwareImpl.java:
##########
@@ -35,7 +35,7 @@ public Optional<Long> getCurrentAuditor() {
         final SecurityContext securityContext = 
SecurityContextHolder.getContext();
         if (securityContext != null) {
             final Authentication authentication = 
securityContext.getAuthentication();
-            if (authentication != null) {
+            if (authentication != null && authentication.getPrincipal() 
instanceof AppUser) {

Review Comment:
   I dont like this... from audit point of view, falling back to super user in 
this case is incorrect.



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