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

pull/619/head
panda 1 year ago committed by GitHub
parent f46d8bf224
commit 6a8491537c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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}).',

Loading…
Cancel
Save