Details
-
Bug
-
Resolution: Fixed
-
Major
-
COmanage Registry 3.3.0 (Magic Ring)
Description
Commit 30ab75759bbab8c7f17347353f1b683e5a0aea97 merged through pull request https://github.com/Internet2/comanage-registry/pull/84 introduces logic that causes the incorrect calculation of the COs in which an authenticated user is a member. This in turn causes the rendering of available COs by app/View/Pages/home.ctp to be incorrect when the authenticated user first logs into Registry.
The problem is this line
$co_person_id_value = $co_person_id[0]['CoOrgIdentityLink']['co_person_id'];
where only the first value from the array is selected (i.e. [0]). Then later this line
$oargs['conditions']['CoOrgIdentityLink.co_person_id'] = $co_person_id_value;
is used to set a condition and because of that condition only Org Identities linked to the one single CoPerson record are returned rather than all Org Identities associated with the authenticated identifier.