Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-30

Optimize query logic in "PrivilegeHelper#can*()" methods

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 1.2.1
    • None
    • API
    • None

    Description

      Right now methods such as "canView()" might internally call "hasPrivilege()" for up to 6 different privileges. We would probably be better served by instead calling "privs.AccessResolver#getPrivileges(Group, Subject)" and then checking the results within the method call.

      Attachments

        Issue Links

          Activity

            People

              isgwb Gary Brown (Inactive)
              blair.christensen@at.internet2.edu Blair Christensen
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: