def __call__(self, target, creds, enforcer):

        return self.match.lower() in [x.lower() for x in creds['roles']]
Check that there is a matching role in the cred dict.
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/openstack/common/policy.py/RoleCheck.__call__