We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

running when it shouldnt be

News and General

George   Yates's avatar
George Yates
1 posts
5 years ago
George   Yates's avatar George Yates

This should only run the channel entries code IF the user is logged in, and belongs to the specific member group.

However, when logged out, it runs the “redirect” code below regardless. If I remove the redirect code it works fine, but I want that to work. Am I missing something or is this a bug?

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
5 years ago
Robin Sowell's avatar Robin Sowell

I think the code snippet didn’t come through.

Though this basic issue does ring a bell. Try using logged_in_group_id and see if that works.

So instead of {if logged_in} try {if logged_in_member_group != 0}

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.