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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.3.3
    • Component/s: core
    • Labels:
      None
    • Magnolia Release:
      5.3.3

      Description

      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!

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: