mirror of
https://github.com/wassname/talk.git
synced 2026-10-03 13:02:47 +08:00
Merge pull request #279 from coralproject/graphql-hotfix
fix a bug per wyatt advice
This commit is contained in:
commit
81ae482524
1 file changed
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user