Jump to content

probably bug in dev for subselector with roles


Frank Vèssia
 Share

Recommended Posts

I don't know where to post this...
Maybe I found a "bug" using this selector

$pages->find("template=picture,image.count=2,limit=10,parent=[pagefield1.pagefield2=xxx]");

What happend here is it I call this selector from an url segment like /photos/new-users/ where "new-users" is the segment. If I'm logged in with admin role I can see the result, otherwise (other role or guest) not. I already checked all my roles and they are ok with permissions, and removing the subselector get me the result for every role or guest. It's something related with this subselector and roles I guess...any idea? 
I'm using latest dev 2.5.14

pagefield1 is a pagefiled connected with user template.
pagefield2 is normal pagefiled.

Edit: removing the urlSegment1 doesn't affect the result, so it's roles/subselector

Edited by Sevarf2
Link to comment
Share on other sites

  • 2 weeks later...

mmm i tried, same result, because i'm not trying to access to users page, i'm searching for "picture" template and trying to filter by user typology. Picture template ahs a parent which is the Profile page, this page has a page filed connected to user, user has a typology field, this is i'm filtering by.

Link to comment
Share on other sites

I'm not even sure I understand the what where and how. But I'm sure if a user has no access to user template or roles you can't filter with subfields. I recognized this in ListerPro too.

Edit: Also, "I tried" doesn't say anything to me. 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...