Only one user role selected? yes or no

0
Hello Team, i have a small question how i can write role for Decision ‘user have already account or not, if yes TRUE if FALS  a msg will pop that only 1 user role is allowed.
asked
1 answers
2

There is an association between user and userrole. If you have the account, you can count the objects on the other siede of this association (It’s called UserRoles). If the result is more than 1 you can throw a validation error.

answered