Skip to content

Commit

Permalink
Merge pull request #1044 from AtlasOfLivingAustralia/feature/pwa2
Browse files Browse the repository at this point in the history
fix for issue with not finding monitor user
  • Loading branch information
chrisala authored Dec 3, 2024
2 parents 23ca722 + b50ebab commit ad8d821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grails-app/services/au/org/ala/ecodata/UserService.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ class UserService {

// userId is set from either the request param userId or failing that it tries to get it from
// the UserPrincipal (assumes ecodata is being accessed directly via admin page)
userId = getUserFromJWT() ?: authService.getUserId() ?: request.getHeader(AuditInterceptor.httpRequestHeaderForUserId)
userId = getUserFromJWT()?.userId ?: authService.getUserId() ?: request.getHeader(AuditInterceptor.httpRequestHeaderForUserId)

if (userId) {
userDetails = setCurrentUser(userId)
Expand Down

0 comments on commit ad8d821

Please sign in to comment.