Here is another Magnolia API trivia quiz question :)

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?

Regards
Amir







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

Reply via email to