Jump to content

FindMany - doesn't work on users


zervis
 Share

Recommended Posts

Hi there,

I'm using FindMany to find pages ant it works really good, but I'm building social portal and I wanted to use it also for users, unfortunatelly it works only on admin (superuser) account.
Users have role "user". I'm a little bit confused why it doesn't work on user account (no problem with pages, only users).

 

Any idea?

Link to comment
Share on other sites

Hi @zervis,

you could try $pages->findMany("template=user"); or $pages->findMany("role=user").

I tested this with normal PW users and $pages->find(), but it should work with findMany, too.

Another way could be: $pages->find("template=user", ["lazy" => true]) see here for options, but I didn't tested that.

  • Like 3
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...