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
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).
Invite link should be accessible for System Admin and Team Admin(s).
Here is screenshot when “Enable Account Creation” set to true.