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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
ericbzh
New Member
New Member
Posts: 2
Joined: Thu Oct 06, 2011 1:18 pm

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

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

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

Post 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...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post by Rolf »

- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”