Merge branch 'master' into username-ban

This commit is contained in:
David Jay
2017-02-02 12:51:11 -05:00
committed by GitHub
+1 -1
View File
@@ -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});
}