fix a bug per wyatt advice

This commit is contained in:
riley
2017-02-01 11:22:42 -07:00
parent f7c43a7853
commit 00297d1a1a
+1 -1
View File
@@ -7,7 +7,7 @@ const User = {
// If the user is not an admin, only return comment list for the owner of
// the comments.
if (user && (user.hasRoles('ADMIN') || user.id === id)) {
return Comments.getByAuthorID.load(id);
return Comments.getByQuery({author_id: id});
}
return null;