def has_grant(user):
    """Returns True if the user is "interesting" (has a grant with profiles)."""
    grant = user.grant()
    if grant:
        return len(grant.profiles_) > 0
    else:
        return False