Skip to Content Skip to Menu

myCmsGid doesn't return good value for guest users

  • meloman
  • meloman
  • OFFLINE
  • Posts: 10
  • Thanks: 0
  • Karma: 2
  • Add-ons
13 years 3 months ago #172969 by meloman
Hi,

I found a bug where anonymous users doesn't get the right GID. In Joomla 1.5 "Public" was 0 but in 1.6 and 1.7 "Public" is 1. I debugged CB and found that $myAid is set to null for J1.6+, so this line return zero : (int) $_CB_framework->myCmsGid();

When my plugin search the database for articles where access >= myCmsGid it return nothing in J1.6+. I'm not sure how to fix that. Should I use something else that myCmsGid or is it a bug in CB where $myAid should not be set to null but to the right value?

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum