def check_perm(user, permission, website):
    """
    Determine if the user has a global or website-specific permission

    Args:
        user (users.models.User): The user to check
        permission (str): The permission to check
        website (Website): The website to check

    """
    return user.has_perm(permission, website) or user.has_perm(permission)