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?

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.