Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sadilchamishka committed Oct 25, 2023
1 parent aa645c8 commit aad6042
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,10 @@ private String[] retrieveUserOrganizationPermission(AuthenticatedUser authentica
when accessed organization is different from the user's resident organization. */
if (authenticatedUser.getAccessingOrganization() != null && !authenticatedUser
.getAccessingOrganization().equals(authenticatedUser.getUserResidentOrganization())) {
Optional<String> optionalUserId = OrganizationSharedUserUtil
Optional<String> optionalOrganizationUserId = OrganizationSharedUserUtil
.getUserIdOfAssociatedUserByOrgId(userId, organizationId);
if (optionalUserId.isPresent()) {
userId = optionalUserId.get();
if (optionalOrganizationUserId.isPresent()) {
userId = optionalOrganizationUserId.get();
}
}
List<String> organizationPermissions = OAuth2ServiceComponentHolder.getRoleManager()
Expand Down

0 comments on commit aad6042

Please sign in to comment.