This is an automated email from the ASF dual-hosted git repository.
LinkinStars pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/dev by this push:
new 2c0ced32 fix: use TagStatusDeleted instead of QuestionStatusDeleted in
tag permission
2c0ced32 is described below
commit 2c0ced322d17a822e82c9de624dd6c252e0ba40b
Author: Duansg <[email protected]>
AuthorDate: Sat Aug 15 22:50:33 2026 -0700
fix: use TagStatusDeleted instead of QuestionStatusDeleted in tag permission
---
internal/service/permission/tag_permission.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/internal/service/permission/tag_permission.go
b/internal/service/permission/tag_permission.go
index 67ac2fa0..dfb50027 100644
--- a/internal/service/permission/tag_permission.go
+++ b/internal/service/permission/tag_permission.go
@@ -58,7 +58,7 @@ func GetTagPermission(ctx context.Context, status int,
canEdit, canDelete, canMe
})
}
- if canRecover && status == entity.QuestionStatusDeleted {
+ if canRecover && status == entity.TagStatusDeleted {
actions = append(actions, &schema.PermissionMemberAction{
Action: "undelete",
Name: translator.Tr(lang, undeleteActionName),