# 网站已切换至员工专用模式，无需显示注册或登录

**URL:** https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703
**Category:** UX
**Tags:** fixed
**Created:** [2026 年7 月 28 日 11:53 UTC](https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703 "2026-07-28T11:53:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [2026 年7 月 28 日 11:53 UTC](https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703/1 "2026-07-28T11:53:32Z")

</div>

过去两天，OpenAI Discourse 论坛一直处于 **仅限管理员模式** 。

只有管理员和拥有更高权限的用户才能与网站进行互动；其他所有用户仅拥有只读权限。

首次访问该网站的用户会看到以下欢迎信息：

![image](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/4X/a/4/8/a48d4fc1a7c523200223d3e6301b29063cec35ab.png)

他们可能还会在页面顶部看到此消息：

![image](https://global.discourse-cdn.com/meta/original/4X/c/a/f/cafde2d0a75ec35d6a96f4d1bc4cfba75636bd0f.png)

此外，主题末尾可能会出现此通知：

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/0/9/d096b4b6031080ee85a21f857bc3269e9e97d842.png)

当网站处于 **仅限管理员模式** 时，最好隐藏那些无法使用的选项，以免给无法使用它们的用户造成困扰。让这些选项保持可见状态很可能会令人沮丧，尤其是因为用户无法通过论坛报告问题或寻求帮助。

---

<div class="post-metadata">

### Author: ![LarisaHaster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/larisahaster/32/577281_2.png) [@LarisaHaster](https://meta.discourse.org/u/LarisaHaster)
#### Post date: [2026 年7 月 28 日 12:32 UTC](https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703/2 "2026-07-28T12:32:51Z")

</div>

> [@EricGT](#):
>
> 让它们保持可见可能会让人沮丧，特别是因为用户无法通过论坛报告问题或寻求帮助。

我同意这个观点。

你能登录吗？我问这个是因为我在那里已经登录了。如果没人能登录或注册，也许应该在横幅上明确说明目前无法登录/注册？

我知道横幅上写着“用户无需采取进一步行动”，但根据我的经验，并非所有用户都会阅读所有内容，或者可能甚至无法理解，因为存在语言障碍，后果可能是更改密码，甚至可能与 OpenAI 支持团队就注册和登录问题进行不必要的联系？

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [2026 年7 月 28 日 13:28 UTC](https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703/3 "2026-07-28T13:28:07Z")

</div>

> [@LarisaHaster](#):
>
> 你能登录吗？

不能。

我点击 **登录** ，然后被重定向到：

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/8/0/08073e5f2b677b76c9e051d8ce20e9a9c1f1bca0.png)

接着我输入我的电子邮件地址：

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/f/1/af1d86be919b3a20dda4b2a87cdcf0ab5b9135a7.png)

随后，我点击 **跳过密码；向我发送登录链接** ，之后页面显示：

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/7/2/272b80b53c5f6f30050b77c55a2c39537849c965.png)

鉴于这很可能是一个临时性问题，我不打算再花更多时间尝试登录该网站。

---

<div class="post-metadata">

### Author: ![LarisaHaster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/larisahaster/32/577281_2.png) [@LarisaHaster](https://meta.discourse.org/u/LarisaHaster)
#### Post date: [2026 年7 月 28 日 13:50 UTC](https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703/4 "2026-07-28T13:50:08Z")

</div>

啊，好的，我明白了。

我昨天可以通过链接登录，但那是在_仅限员工模式_之前。

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2026 年7 月 28 日 16:29 UTC](https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703/6 "2026-07-28T16:29:39Z")

</div>

感谢 @EricGT 的反馈 👍 我同意我们应该尽力避免用匿名用户无法执行的 CTA（行动号召）让他们感到沮丧。

这将通过

> <https://github.com/discourse/discourse/pull/42101>
>
> Previously, a site in read only or staff only mode still offered
> anonymous visit…ors every way in: the header "Sign Up" button, the signup
> call to action at the end of a topic, the create account link on the
> login page, and the server-rendered header — including the one on the
> read only error page itself. Account creation is blocked in both modes,
> so all of them were dead ends. The banner made it worse by describing
> what members lose (replying, likes) rather than what an anonymous
> visitor is actually unable to do.
> 
> This change gates the JS \`canSignUp\` getter and its Ruby twin
> \`can\_sign\_up?\` on read only state, which covers every signup entry point
> at once. \`canSignUp\` had to drop its \`@computed\` decorator to do so:
> with no dependent keys it cached permanently, so the new term would have
> been evaluated once at boot and then frozen — leaving the button visible
> if read only mode started later, and hidden long after it ended.
> 
> The "Log In" button deliberately stays, because staff can still log in
> during staff only mode. Anonymous visitors now get banner copy naming
> signup and login instead, a refused login says only staff can log in
> rather than claiming login is disabled outright, and the email and code
> login forms show that inline instead of a generic "an error occurred"
> dialog.
> 
> It also fixes a pre-existing blank page. Both \`/login\` and \`/signup\`
> aborted the transition when read only, which on a direct URL load left
> the application template unrendered — and with it the dialog holder, so
> the explanation never appeared either. They now redirect home when there
> is no route to stay on, and keep aborting when there is.
> 
> Meta ref: /t/408703

得到修复。

---

<div class="post-metadata">

### Author: ![EricGT](https://avatars.discourse-cdn.com/v4/letter/e/f1d935/32.png) [@EricGT](https://meta.discourse.org/u/EricGT)
#### Post date: [2026 年7 月 28 日 23:45 UTC](https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703/8 "2026-07-28T23:45:38Z")

</div>

OpenAI 网站上的更新已生效。

约12小时内修复 :high_five:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/6/a/d6a167d9f14230e396e09bc84a154190d60cf218.png)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [2026 年7 月 29 日 09:22 UTC](https://meta.discourse.org/t/site-in-staff-only-mode-no-need-to-show-signup-or-login/408703/9 "2026-07-29T09:22:40Z")

</div>


