[Flow] How to find all accounts for given role?
Max Mustermann
gj at webandco.com
Tue Aug 19 07:19:43 CEST 2014
Hi,
i'm using the account repository to handle authentication out of the box.
Additionally i want that higher privileged accounts can modify lower privileged.
The privileges are reflected by the Role-Tree configured in Policy.yaml.
Now i want to present an account with, e.g. Admin role, all accounts with lower privileges.
Gathering the relevant roles is not the problem, but
given a specific role, e.g. Customer, how can i query a list of all accounts having this role set?
One obvious option would be to use
$accountRepository->findAll();
and drop not needed accounts - kinda boring this way.
So, how can i query all accounts for given role?
thanks for any hint
More information about the Flow
mailing list