core: fix user delete self discussion reply (#615) (#617)

This commit is contained in:
panda authored and GitHub committed 2023-07-19 13:02:42 +08:00
1 parent f46d8bf224
commit 6a8491537c
1 file changed
+1 -1
+1 -1
View File
@@ -284,7 +284,7 @@ class DiscussionDetailHandler extends DiscussionHandler {
&& this.user.hasPerm(PERM.PERM_DELETE_DISCUSSION_REPLY_SELF_DISCUSSION))) {
if (!this.user.own(this.drdoc)) {
this.checkPerm(PERM.PERM_DELETE_DISCUSSION_REPLY);
} else this.checkPerm(PERM.PERM_DELETE_DISCUSSION_SELF);
} else this.checkPerm(PERM.PERM_DELETE_DISCUSSION_REPLY_SELF);
}
const msg = JSON.stringify({
message: '{0} {1} delete your discussion reply {2} in "{3}"({4:link}).',