Uploaded image for project: 'COmanage'
  1. COmanage
  2. CO-1832

Incorrect calculation of CO membership

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            ioannis.igoumenos@at.internet2.edu Ioannis Eythymios Igoumenos
            scott.koranda.3@at.internet2.edu Scott Koranda SCG (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: