Jump to content

Find user by roles


MoritzLost
 Share

Recommended Posts

We have a query that's used to find all users with the member role, but without any of a number of other roles:

$users->find('roles=member, roles!=member-confirmed|login-disabled|superuser|editor, sort=created')

This used to work in previous ProcessWire versions. However, we recently updated ProcessWire (currently on 3.0.226). Now the query just returns all users, regardless of role.

Anyone know when this behaviour was changed? And how can we fix the query?

@ryan Since this is a breaking change, why wasn't there a minor or major version increase for whichever release changed this behaviour?

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...