def METHOD_NAME(user):
    from account.models import Role
    role_dba = Role.objects.get(name='role_dba')
    dba_groups = role_dba.team_set.values_list('id', flat=True)
    return (user.is_superuser or
            user.team_set.filter(id__in=dba_groups))