Forums / Developer / How to fetch user groups?

How to fetch user groups?

Author Message

Alessandro Ranellucci

Thursday 05 June 2003 10:34:52 am

I have a string. I want to compare it with the names of the groups the current user belongs to, but I just can't retrieve user groups.

{let thisuser=fetch('user','current_user')}
{let mygroup=fetch('content','object',hash(object_id, $thisuser.groups[0]))}

Why doesn't the above code work?