-
Bug
-
Resolution: Fixed
-
Major
-
4.5.3
-
Windows, 4.5.3 EE Bundle
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>
Acceptance criteria
- is duplicated by
-
MAGNOLIA-4569 MgnlUser.hasRole is broken (more precisely RepositoryBackedSecurityManager.hasAny)
- Closed
- is related to
-
MAGNOLIA-3386 MgnlRole.addPermission() writes the permission property as a string, where as it should be a number (long)
- Closed
-
MAGNOLIA-4518 Unnecessary calls to unwrap JCRPropertiesFilteringNodeWrapper are still present in the code
- Closed