I have another tag that check is user has a role in the list of specified roles...
Based on that I display some edit bars (or not)....

I get a user roles from MgnlContext.getUser().getRoles()...
everything worked great until I realized that instead of assigning 5 roles to each member of the web team I could create a group, assign those 5 roles to a group and then assign team members (users) to group...

But then user.getRoles() returns nothing :)

Am I correct to assume I have to check user groups and then grab roles from each group? If that is the case then ok but shouldn't user.getRoles() already do that? Or is my logic flawed?

I think an additional getAllRoles() or similar should do the job. Feel free to add that feature request to jira.

Philipp Bracher


Regards
Amir







        
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/developer.html
----------------------------------------------------------------


----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

Reply via email to