A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
fix: use TagStatusDeleted instead of QuestionStatusDeleted in tag permission
Duansg2c0ced322d17
diff --git a/internal/service/permission/tag_permission.go b/internal/service/permission/tag_permission.goindex 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),