[MAGNOLIA-5415] ConfiguredAccessDefinition has to always allow access to superuser Created: 24/Oct/13 Updated: 06/Nov/13 Resolved: 01/Nov/13 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | core |
| Affects Version/s: | 5.1.1 |
| Fix Version/s: | 5.2 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Roman Kovařík | Assignee: | Roman Kovařík |
| 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)
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
ConfiguredAccessDefinition has to always allow access to superuser. |
| Comments |
| Comment by Roman Kovařík [ 31/Oct/13 ] |
|
This probably doesn't work: for (Principal p : MgnlContext.getWebContext().getSubject().getPrincipals()) { if (p instanceof AdminPrincipal || p instanceof SystemPrincipal) { return true; // give this guy access no matter what } } |