mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
1 parent
f46d8bf224
commit
6a8491537c
1 file changed
+1
-1
@@ -284,7 +284,7 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
|||||||
&& this.user.hasPerm(PERM.PERM_DELETE_DISCUSSION_REPLY_SELF_DISCUSSION))) {
|
&& this.user.hasPerm(PERM.PERM_DELETE_DISCUSSION_REPLY_SELF_DISCUSSION))) {
|
||||||
if (!this.user.own(this.drdoc)) {
|
if (!this.user.own(this.drdoc)) {
|
||||||
this.checkPerm(PERM.PERM_DELETE_DISCUSSION_REPLY);
|
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({
|
const msg = JSON.stringify({
|
||||||
message: '{0} {1} delete your discussion reply {2} in "{3}"({4:link}).',
|
message: '{0} {1} delete your discussion reply {2} in "{3}"({4:link}).',
|
||||||
|
|||||||
Reference in new issue
Block a user