# 无法编辑调查

**URL:** https://meta.discourse.org/t/unable-to-edit-a-survey/402237
**Category:** Bug
**Tags:** surveys
**Created:** [2026年五月5日 21:14 UTC](https://meta.discourse.org/t/unable-to-edit-a-survey/402237 "2026-05-05T21:14:17Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [2026年五月6日 07:23 UTC](https://meta.discourse.org/t/unable-to-edit-a-survey/402237/4 "2026-05-06T07:23:19Z")

</div>

感谢报告此错误，@putty。应已通过此提交修复：

> <https://github.com/discourse/discourse-surveys/commit/af7f85126ff5aabbb08132f960061b84f70f6cfa>
>
> \* FIX: allow staff to edit surveys after post ownership transfer
> 
> The post valid…ator checked the post \*\*owner\*\* (\`@post.user.staff?\`)
> instead of the user performing the edit. After ownership transfer to a
> non-staff user, even staff editors were blocked, and they saw a raw
> \`Translation missing: en.survey.insufficient\_rights\_to\_create\` because
> that key was missing from \`server.en.yml\`.
> 
> \*\*Changes:\*\*
> 
> \- Validate \`@post.acting\_user\` (falls back to \`@post.user\` on create).
> \- Add the missing \`survey.insufficient\_rights\_to\_create\` translation.
> \- Add specs covering create permissions and edits across ownership
> transfers.
> 
> \* fix specs

---

_[View the full topic](https://meta.discourse.org/t/unable-to-edit-a-survey/402237)._
