GitLab will be shut down on June 25 to move to a new facility. https://www.eclipsestatus.io/incidents/5ffy27gwcbx7

Commit f6c1dd39 authored by Martin Lowe's avatar Martin Lowe 🇨🇦
Browse files

Fix access check to ignore emp history table

parent 4de017a2
Pipeline #3105 passed with stage
in 0 seconds
......@@ -382,8 +382,10 @@ public class FoundationDBOrganizationService implements OrganizationsService {
params.add(MembershipFormAPIParameterNames.USER_ID.getName(), userName);
return cache
.get(orgID + "-access", params, OrganizationContactData.class,
() -> middleware.getAll(i -> orgAPI.getOrganizationContact(orgID, userName, i,
OrganizationRequestParams.builder().build()), OrganizationContactData.class))
() -> middleware.getAll(
i -> orgAPI.getOrganizationContact(orgID, userName, i,
OrganizationRequestParams.builder().setIsNotExpired(false).build()),
OrganizationContactData.class))
.orElse(Collections.emptyList()).stream()
.map(c -> OrganizationalUserType.valueOfChecked(c.getRelation())).collect(Collectors.toList());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment