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.
Same here (and some other places below too) :)