def check_permissions(permissions, context):
    """
    Check if it's permitted.
    Raises an appropriate exception if it's is not permitted.
    """
    for permission in permissions:
        if not permission.has_permission(context):
            return False
    return True
