File tree Expand file tree Collapse file tree
services/libs/data-access-layer/src/members Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1152,18 +1152,15 @@ export async function mergeRoles(
11521152 finalAllowAffiliation = false
11531153 }
11541154
1155- // 4. Update Database
1155+ // 4. Update db
11561156 const needsUpdate =
11571157 isTargetBlocked ||
11581158 primaryOverride ?. allowAffiliation === false ||
11591159 secondaryManualBlock ||
11601160 finalIsPrimaryWorkExp
11611161
11621162 if ( needsUpdate ) {
1163- // For duplicate roles (upsert), undefined allowAffiliation won't clear a stale false
1164- // due to COALESCE in the ON CONFLICT clause. Explicitly set true when not blocked.
1165- const effectiveAllowAffiliation =
1166- finalAllowAffiliation === false ? false : ! newRoleId ? true : finalAllowAffiliation
1163+ const effectiveAllowAffiliation = finalAllowAffiliation
11671164
11681165 await changeMemberOrganizationAffiliationOverrides ( qx , [
11691166 {
You can’t perform that action at this time.
0 commit comments