Page 1 of 1

FEU: $ccuser-> memberof does not work (for me) !!!!

Posted: Thu Oct 06, 2011 1:26 pm
by ericbzh
hi all,

this works fine :

{if $ccuser->loggedin()}
You're logged in
{else}
Please log in
{/if}

This does not work for me:

{if $ccuser->loggedin() && $ccuser->memberof('users')}
You're logged and belong to group "users"
{else}
No access permitted
{/if}

the user id i'm testing belongs in FEU to "users" group but this last code give me no access as if i had no group or if the user belongs to another group....

anyone can help me ?

really thanks.

eric

Re: FEU: $ccuser-> memberof does not work (for me) !!!!

Posted: Sun Dec 18, 2011 6:04 pm
by Dr.CSS
I don't think you need the if $ccuser->loggedin() part just the if $ccuser->memberof('users') because they can't be a member if they aren't logged in...

Re: FEU: $ccuser-> memberof does not work (for me) !!!!

Posted: Sun Dec 18, 2011 11:46 pm
by Rolf