mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: fix bugs and add hint (#635)
Co-authored-by: panda <panda_dtdyy@outlook.com>
This commit is contained in:
1 parent
e02d8b5d43
commit
7687b99f07
13 files changed
+81
-49
No files matched your search
@@ -42,11 +42,13 @@ homework_main: Homework
|
||||
homework_scoreboard: Scoreboard
|
||||
judge_playground: Judge Playground
|
||||
main: Home
|
||||
manage_config: System Configurations
|
||||
manage_dashboard: System
|
||||
manage_module: Module Management
|
||||
manage_script: Scripts
|
||||
manage_setting: System Settings
|
||||
manage_user_import: Import Users
|
||||
manage_user_priv: User Privilege
|
||||
manage: System Manage
|
||||
no_translation_warn: <blockquote class="warn">This part of content is under translation.</blockquote>
|
||||
page.problem_detail.sidebar.show_category: Click to Show
|
||||
|
||||
@@ -322,7 +322,10 @@ class DiscussionDetailHandler extends DiscussionHandler {
|
||||
@param('drrid', Types.ObjectId)
|
||||
async postDeleteTailReply(domainId: string, drid: ObjectId, drrid: ObjectId) {
|
||||
const deleteBy = this.user.own(this.drrdoc) ? 'self' : 'Admin';
|
||||
if (!this.user.own(this.drrdoc)) this.checkPerm(PERM.PERM_DELETE_DISCUSSION_REPLY);
|
||||
if (!(this.user.own(this.drrdoc)
|
||||
&& this.user.hasPerm(PERM.PERM_DELETE_DISCUSSION_REPLY_SELF))) {
|
||||
this.checkPerm(PERM.PERM_DELETE_DISCUSSION_REPLY);
|
||||
}
|
||||
const msg = JSON.stringify({
|
||||
message: 'Admin {0} delete your discussion tail reply {1} in "{2}"({3:link}).',
|
||||
params: [
|
||||
|
||||
Reference in new issue
Block a user