def get_log(auth, log_id): log = NodeLog.load(log_id) node_to_use = log.node if not node_to_use.can_view(auth): raise HTTPError(http.FORBIDDEN) return {'log': serialize_log(log)}
def get_log(auth, log_id): log = NodeLog.load(log_id) node_to_use = log.node if not node_to_use.can_view(auth): raise HTTPError(http.FORBIDDEN) return {'log': serialize_log(log, auth=auth)}
def get_log(log_id): log = NodeLog.load(log_id) node_to_use = log.node auth = Auth( user=get_current_user(), api_key=get_api_key(), api_node=get_current_node(), ) if not node_to_use.can_view(auth): raise HTTPError(http.FORBIDDEN) return {'log': serialize_log(log)}