def has_role(self, uid, role, project_id=None):

        return role in self.get_user_roles(uid, project_id)
Check if user has role
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/auth/dbdriver.py/DbDriver.has_role