From 79a2a2144cbbd7c417f17c975af2e46ea53de8f0 Mon Sep 17 00:00:00 2001 From: David Erwin Date: Thu, 2 Feb 2017 11:51:09 -0500 Subject: [PATCH] Fix admin user stream bug --- graph/loaders/comments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph/loaders/comments.js b/graph/loaders/comments.js index 144586064..0b6ad976d 100644 --- a/graph/loaders/comments.js +++ b/graph/loaders/comments.js @@ -100,7 +100,7 @@ const getCommentsByQuery = ({user}, {ids, statuses, asset_id, parent_id, author_ }); } - if (user && (user.hasRoles('ADMIN') || user.id === author_id)) { + if (user && (user.hasRoles('ADMIN') || user.id === author_id) && author_id != null) { comments = comments.where({author_id}); }