Hi
At first thank you for Isis. It's fun solving problems with this handy tool.
I have a problem with roles, esp. container.getUser().hasRole(...). If I use the
archetype and implement a action like:
LOG.info("admin: "+container.getUser().hasRole("admin_role"));
LOG.info("user: "+container.getUser().hasRole("user_role"));
LOG.info("analysis: "+container.getUser().hasRole("analysis_role"));
LOG.info("self-install: "+container.getUser().hasRole("self-install_role"));
for (RoleMemento rm:container.getUser().getRoles())
LOG.info("ROLE: "+rm.getName());
I always get 4 times false and only one role "...roles.User" . I logged in with
user sven and admin_role.
Please can anyone provide help.
Thanks.
Matthias