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

        return self.match.lower() in [x.lower() for x in creds['roles']]
Check if file is locked.
dataset/ETHPy150Open CiscoSystems/avos/openstack_dashboard/openstack/common/policy.py/RoleCheck.__call__--crossover with--dataset/ETHPy150Open facelessuser/EasyDiff/lib/svn.py/checklock