Rules condition if user has certain roles not working at all? I have 2 roles:


Customer
Moderator


I have created a Rule:

Event. On account creation

Condition. If user has role: Moderator (and checked reverse, so when user doesn't have a role Moderator it should return TRUE), also as data selector i chose "account"

Action. Assign role: Customer, selector "account"

However, when i logged in with a user with role Moderator and create a new user with role Moderator it automatically adds the role customer as well. So my condition isn't working?

UPDATE I have tried in conditions: [site:current-user], still it adds the "Customer" role to a newly created account with a role Moderator by Moderator
Sorry, ignore my last comment.

You need a condition of "user as role" set to "site:current-user".
Then select the role that is required which is "moderator".
Leave everything else unchanged and save.

You need an action of "add role"
This action defaults to "account" so leave it as is.
Select the role you want to add, and save.