mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
remove context
This commit is contained in:
@@ -14,7 +14,7 @@ const User = {
|
||||
|
||||
// If the user is not an admin, only return comment list for the owner of
|
||||
// the comments.
|
||||
if (user && (user.can('SEARCH_OTHERS_COMMENTS') || user.id === id)) {
|
||||
if (user && (user.can('SEARCH_OTHERS_COMMENTZ') || user.id === id)) {
|
||||
return Comments.getByQuery({author_id: id, sort: 'REVERSE_CHRONOLOGICAL'});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user