Uploaded image for project: '[Read Only] - Hippo Repository'
  1. [Read Only] - Hippo Repository
  2. REPO-2278

Rename confusing method HippoSession.isSystemUser() to isSystemSession()

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • High
    • Resolution: Fixed
    • None
    • 14.0.0
    • None
    • None

    Description

      As issue REPO-2277 made clear, HippoSession.isSystemUser() is easily confused with HippoSession.getUser().isSystemUser(), while it really is something completely different!

      When HippoSession.isSystemUser() returns true, it means that the session has system privileges (which also and even more confusing is only is granted to the "system" user, e.g. session.getID().equals("system")).

      When User().isSystemUser() returns true, it means that the user is necessary for the system itself, and is not (to be used by or for) a normal (human) user.

      As this obviously is all very confusing, the HippoSession.isSystemUser() method (new in v14) will be renamed to HippoSession.isSystemSession(). 

      Attachments

        Activity

          People

            Unassigned Unassigned
            adouma Ate Douma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: