MgnlContext.getUser().inGroup("xxx") gives NPE
----------------------------------------------
Key: MAGNOLIA-4480
URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-4480
Project: Magnolia
Issue Type: Bug
Security Level: Public
Components: security
Affects Versions: 4.5.3
Environment: Windows, 4.5.3 EE Bundle
Reporter: Richard Unger
Assignee: Philipp Bärfuss
Priority: Major
Calling MgnlContext.getUser().inGroup() produces NPE.
You can verify this quickly with the groovy console.
Welcome to the Magnolia Groovy Interactive Console! Type 'help' for more info
and a list of available commands. [Using Groovy version 1.7.10].
mgnl> usr = MgnlContext.getUser();
===>
MgnlUser - superuser [51ae3379-67cf-4994-9e05-f97cb8bc3e4a]
mgnl> usr.inGroup("foo");
NullPointerException: null
mgnl>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------