# Link "Invite others to this team" in header of "Town Square" channel can not be removed

**URL:** <https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301>\
**Category:** Troubleshooting\
**Created:** [July 8, 2018, 10:34pm UTC](https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301 "2018-07-08T22:34:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wowik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/wowik/32/2228_2.png) [@Wowik](https://forum.mattermost.com/u/Wowik)\
**Post date:** [July 8, 2018, 10:34pm UTC](https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301/1 "2018-07-08T22:34:49Z")

</div>

#### Summary

Link “Invite others to this team” in header of “Town Square” channel can not be removed.

#### Steps to reproduce

OS Debian Jessie  
Mattermost Version: 5.0.0  
Database Schema Version: 5.0.0  
Database: mysql

Setting in System Console -\> Users and Teams -\> Enable Account Creation to false do not remove link “Invite others to this team” in header of “Town Square” channel. It only removes “Get Team Invite Link” in “Main menu”.  
Checked it using different roles (System Admin and Member).

#### Expected behavior

Invite link should be accessible for System Admin and Team Admin(s).

#### Observed behavior

Here is screenshot when “Enable Account Creation” set to true.  
 ![MM%20InvLink%20on](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/3/3f5d929a61c0890b36adbd526e8cbd5f2d4cefb1.png)

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [July 9, 2018, 3:02pm UTC](https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301/2 "2018-07-09T15:02:14Z")

</div>

Hi @Wowik! Thank you for reporting this.

I’m able to repro this so I’ll ask the team on what’s expected here.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [July 9, 2018, 3:24pm UTC](https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301/3 "2018-07-09T15:24:52Z")

</div>

@Wowik - I checked with the team and it looks like this is expected. One response:

“The team invite link can be used for members already in the system - e.g. someone now is in team A can be invited to team B. So I think it can still be kept.”

You can follow any other responses in our [build server](https://pre-release.mattermost.com/signup_user_complete/?id=f1924a8db44ff3bb41c96424cdc20676) in the [Bugs channel](https://pre-release.mattermost.com/core/pl/4qipfrsqjbrezqedknukq3co7a) - feel free to join and ask any other questions regarding this!

---

<div class="post-metadata">

**Author:** ![Wowik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/wowik/32/2228_2.png) [@Wowik](https://forum.mattermost.com/u/Wowik)\
**Post date:** [July 13, 2018, 1:28pm UTC](https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301/4 "2018-07-13T13:28:18Z")

</div>

Thanks for rapid answer, but I am afraid it is not correct. Or I do not understand situation correctly.

Marked with arrows on my screenshot have same functionality - it opens window “Team Invite Link”.

As I understood from your answer, link “Invite others to this team” in header of Town Square have to open window “Add New Members To Support Team”.  
In this case it means that link “Invite others to this team” operates incorrectly and opens wrong window?

![MM%20win%20Team%20Invite%20Link](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/6/6227329f9446de53720bd207dddd008dc6642e2d.png)

![MM%20win%20Add%20Members%20to%20Team](https://us1.discourse-cdn.com/flex020/uploads/mattermost/original/2X/9/923479454f36d078d8749566aeb0c75194d935f0.png)

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [July 13, 2018, 9:02pm UTC](https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301/5 "2018-07-13T21:02:19Z")

</div>

Hi @Wowik! It looks like possibly there was a bug that has been fixed after v5.0.

I tested this on v5.0.2 and v5.1.0 and this is what I get when I disable “Enable Account Creation” and click “Invite others to this team” in header of “Town Square” channel:

![test](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex020/uploads/mattermost/original/2X/f/f46483fb1bb6db5dd5ec13690aa0d66f0866d734.png)

---

<div class="post-metadata">

**Author:** ![Wowik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/wowik/32/2228_2.png) [@Wowik](https://forum.mattermost.com/u/Wowik)\
**Post date:** [July 15, 2018, 10:06am UTC](https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301/6 "2018-07-15T10:06:31Z")

</div>

Same window I have too (I have v5.0.1 now installed).  
Is it correct behavior?

This link any member of team can provide for any person and it allows to register new account on a mattermost server.  
I think it is wrong.

---

<div class="post-metadata">

**Author:** ![amy.blais](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/amy.blais/32/7481_2.png) [@amy.blais](https://forum.mattermost.com/u/amy.blais)\
**Post date:** [July 17, 2018, 12:17pm UTC](https://forum.mattermost.com/t/link-invite-others-to-this-team-in-header-of-town-square-channel-can-not-be-removed/5301/7 "2018-07-17T12:17:53Z")

</div>

Hi @Wowik! You’re right, this seems like a bug. I created a ticket and you can follow it’s progress here: [https://mattermost.atlassian.net/browse/MM-11369](https://mattermost.atlassian.net/browse/MM-11369).
