Jump to content

Recommended Posts

Posted

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?

Posted

@AndZyk Thanks Andreas! Looks like that was it, I updated to 3.0.229 and the query works correctly again.

Not sure why my colleague updated to a non-Master version, we usually don't do that. Lesson learned, I guess.

  • Like 1

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
  • Recently Browsing   0 members

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