# Disabling Allow New Registrations still shows registration link and modal

**URL:** <https://meta.discourse.org/t/disabling-allow-new-registrations-still-shows-registration-link-and-modal/42660>\
**Category:** Bug\
**Created:** [2016 年4 月 16 日 18:19 UTC](https://meta.discourse.org/t/disabling-allow-new-registrations-still-shows-registration-link-and-modal/42660 "2016-04-16T18:19:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

作者： ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
发布日期： [2016 年4 月 17 日 11:17 UTC](https://meta.discourse.org/t/disabling-allow-new-registrations-still-shows-registration-link-and-modal/42660/4 "2016-04-17T11:17:29Z")

</div>

> [@ron\_jeremy](#):
>
> I noticed that if I uncheck
> 
> `allow new registrations`
> 
> the ‘Sign Up’ link is still visible in the header.

I am not able to repro this.

In my local testing when I disabled `allow new registrations` setting, the ‘Sign Up’ button was hidden from site header. This is expected, as per this code:

[https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/controllers/application.js.es6#L9-L13](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/controllers/application.js.es6#L9-L13)

Are you testing this on latest Discourse version?

---

_[View the full topic](https://meta.discourse.org/t/disabling-allow-new-registrations-still-shows-registration-link-and-modal/42660)._
