[MAGNOLIA-5898] Create boolean voter that votes whenever the current user is a system or admin user Created: 26/Aug/14 Updated: 01/Sep/14 Resolved: 26/Aug/14 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | None |
| Fix Version/s: | 5.3.3 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Philip Mundt | Assignee: | Philip Mundt |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Template: |
|
||||||||
| Acceptance criteria: |
Empty
|
||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||
| 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! |