Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Fix_get_profile_query #73

Draft
wants to merge 1 commit into
base: devel
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/Auth/Process/COmanageDbClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,19 +146,19 @@ class COmanageDbClient extends \SimpleSAML\Auth\ProcessingFilter
. " string_agg(DISTINCT name.family, ',') AS family,"
. " string_agg(DISTINCT mail.id::text || ':' || mail.mail || ':' || mail.verified::text, ',') AS mail,"
. " string_agg(DISTINCT ident.type || ':' || ident.identifier, ',') AS identifier,"
. " (select string_agg(coi.affiliation || '@' || coi.o, ',') as eduPersonScopedAffiliation"
. " (select string_agg(coi.affiliation || '@' || coi.o, ',') as edupersonscopedaffiliation"
. " from cm_org_identities as coi"
. " inner join cm_co_org_identity_links ccoil on coi.id = ccoil.org_identity_id and"
. " not coi.deleted and not ccoil.deleted and"
. " coi.o is not null and coi.o != '' and"
. " coi.status != '" . OrgIdentityStatusEnum::Removed . "' and"
. " coi.affiliation is not null and coi.affiliation != ''"
. " coi.o is not null and coi.o is distinct from '' and"
. " coi.status is distinct from '" . OrgIdentityStatusEnum::Removed . "' and"
. " coi.affiliation is not null and coi.affiliation is distinct from ''"
. " where ccoil.co_person_id = :coPersonId),"
. " (select string_agg(coi.o, ',') as organization"
. " from cm_org_identities as coi"
. " inner join cm_co_org_identity_links ccoil on coi.id = ccoil.org_identity_id and"
. " not coi.deleted and not ccoil.deleted and"
. " coi.o is not null and coi.o != '' and coi.status != '" . OrgIdentityStatusEnum::Removed . "'"
. " coi.o is not null and coi.o is distinct from '' and coi.status is distinct from '" . OrgIdentityStatusEnum::Removed . "'"
. " where ccoil.co_person_id = :coPersonId)"
. " FROM cm_co_people person"
. " LEFT OUTER JOIN cm_names name"
Expand Down