Page 1 of 1

how to remove [invite users] button from titlebar?

Posted: 27 Feb 2018, 18:16
by mushu
MantisBT 2.7.0

How can I remove the button for inviting users entirely from the top bar? It sits next to the [report issue] button.

EDIT: we use active directory authentication via the old AdLogin plugin, which works great. People access our MantisBT website and are automatically logged into the system. We also use the email reporting plugin & script to allow our employees to simply email a special email address and submit a bug that way, and a ticket is created and emails are generated to the admins and we can assign the ticket and go from there. Pretty slick. Anyway, this is why we don't need or want people playing with that button, because it is not needed in our environment.

Re: how to remove [invite users] button from titlebar?

Posted: 28 Feb 2018, 09:03
by rkarmann
Hi,

To disable signup in Mantis, you have to set the following configuration option: (in config/config_inc.php)

Code: Select all

$g_allow_signup = OFF
Doing this, users won't be able to invte other and create an account from the login page.

See the documentation for further info.

Regards

RK

Re: how to remove [invite users] button from titlebar?

Posted: 01 Mar 2018, 07:04
by atrol
rkarmann wrote: 28 Feb 2018, 09:03

Code: Select all

$g_allow_signup = OFF
Doing this, users won't be able to invte other
Not true when using a standard Mantis.

Re: how to remove [invite users] button from titlebar?

Posted: 01 Mar 2018, 07:19
by rkarmann
So there is no configuration option to answer this user need ?

Re: how to remove [invite users] button from titlebar?

Posted: 01 Mar 2018, 15:07
by atrol
rkarmann wrote: 01 Mar 2018, 07:19 So there is no configuration option to answer this user need ?
There is no option.
At the moment the "Invite Users" button is shown if a user is logged in as administrator.

Re: how to remove [invite users] button from titlebar?

Posted: 01 Mar 2018, 15:49
by mushu
Ahhh I didn't realize that only Admins saw that button. Then it's ok, I'll just make sure the other Admins know to not click that button. Thanks for the clarification. RTFM is fine and all, but when it is huge and a single sentence is important, there's no way to ensure that taking the time to search through it will be sufficient. That's why these forums are so important for support purposes.

Keep up the good work even though you don't get kudos all the time!

Re: how to remove [invite users] button from titlebar?

Posted: 01 Mar 2018, 23:07
by Starbuck
If you want to change that refined behavior, consider a small plugin.

Re: how to remove [invite users] button from titlebar?

Posted: 02 Mar 2018, 16:09
by rkarmann
I have wrote a little tutorial on how to create a Plugin, based on your need. You can take a look at the topic and write it yourself, or just download it on GitHub.

Just follow the plugin installation instructions here.

RK