ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Bug? Entries shown to all users even when author_id param set to CURRENT_USER

September 15, 2011 9:05am

Subscribe [2]
  • #1 / Sep 15, 2011 9:05am

    Adam George

    283 posts

    According to the docs:

    author_id="CURRENT_USER"

    This allows each logged-in user to get only their entries. Users who are not logged in won’t see anything.

    However, I’m experiencing different behaviour with the following reduced test-case:

    {exp:channel:entries channel="orders" dynamic="off" entry_id="{segment_3}" author_id="CURRENT_USER" status="open|closed|my_custom_status" limit="1" disable="member_data|pagination|trackbacks|categories"}
    ...Stuff goes here
    {/exp:channel:entries}

    With the code above, even when I am not logged in, I can see the entry.

    If I remove the ‘entry_id’ parameter, it works as expected.

    EE v2.2.1 - Build: date 20110705

    Please advise, thanks.
    - Adam

  • #2 / Sep 15, 2011 2:07pm

    Mark Bowen

    12637 posts

    Hi Adam,

    I just tested this as you have above on a test install of mine (2.2.2) and if I’m not logged in I don’t get to see the entry at all.

    I don’t know if that’s a bug in 2.2.1 or not but is there any possibility you could upgrade to the latest version of 2.2.2 to see if that gets rid of the problems here?

    Thanks,

    Mark

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases