Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-5898

Create boolean voter that votes whenever the current user is a system or admin user

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 5.3.3
    • None
    • core
    • None

      Current voters only allow to check whether a user is authenticated (info.magnolia.voting.voters.AuthenticatedVoter). There is no way to determine whether the current user is a system or admin user (or not a public user or a user of any other realm).

      We therefore suggest to introduce a voter that votes on the two known "core" realms info.magnolia.cms.security.Realm#REALM_SYSTEM and info.magnolia.cms.security.Realm#REALM_ADMIN. There is also the public realm (or any other custom realms) which we want to sepcifically exclude!

        Acceptance criteria

              pmundt Philip Mundt
              pmundt Philip Mundt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD