Skip to content

Commit

Permalink
Imports optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Jan 5, 2024
1 parent 99c0d3f commit 697e985
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ public OidcUser loadUser(OidcUserRequest userRequest) throws OAuth2Authenticatio

String sub = (String) newClaims.get("sub");
Optional<User> optionalUser = userRepository.findBySubIgnoreCase(sub);
boolean institutionAdmin = InstitutionAdmin.isInstitutionAdmin(claims, entitlement) ||
boolean institutionAdmin = isInstitutionAdmin(claims, entitlement) ||
(optionalUser.isPresent() && isInstitutionAdmin(optionalUser.get()));
newClaims.put(INSTITUTION_ADMIN, institutionAdmin);

String organizationGuid = InstitutionAdmin.getOrganizationGuid(claims, organizationGuidPrefix, optionalUser)
String organizationGuid = getOrganizationGuid(claims, organizationGuidPrefix, optionalUser)
.orElse(null);
newClaims.put(ORGANIZATION_GUID, organizationGuid);

Expand Down

0 comments on commit 697e985

Please sign in to comment.