disallow adding a tag to a deleted comment

This commit is contained in:
Wyatt Johnson
2018-05-08 14:03:11 -06:00
parent 8c304c762d
commit a1edbcf974
+5
View File
@@ -163,6 +163,11 @@ class TagsService {
},
};
if (item_type === 'COMMENT') {
// Don't allow adding tags to deleted comments.
query.deleted_at = null;
}
// If ownership verification is required, ensure that the person that is
// assigning the tag is the same person that owns the comment.
if (ownershipCheck) {