2281119 - UserHasRole condition implementation.

Initial code. Not sure if the data types are correct neither what to do (how to properly define) the "operations" parameter.
I'd prefer a direct return here:

return (bool) array_intersect($rids, $account->getRoles());