Page 1 of 1
Allowing Anonymous Users to View Issues
Posted: 04 Jan 2013, 20:23
by trekcaptainusa
I'd like to allow anonymous viewers to view public issues, as well as list them, for a given project.
How do I go about doing that in Mantis 1.2.12?
Re: Allowing Anonymous Users to View Issues
Posted: 05 Jan 2013, 18:07
by atrol
http://www.mantisbt.org/docs/master-1.2 ... ONFIG.MISC
$g_allow_anonymous_login
Enable anonymous access to Mantis. You must also specify $g_anonymous_account as the account which anonymous users will browse Mantis with. The default setting is OFF.
$g_anonymous_account
Define the account which anonymous users will assume when using Mantis. This account is considered by Mantis to be protected from modification. In other words, this account can only be modified by users with an access level equal to or higher than $g_manage_user_threshold. Anonymous users will not be able to adjust preferences or change account settings like normal users can.
You will need to create a new account to use for this $g_anonymous_account setting. When creating the account you should specify a password, email address and so forth in the same way you'd create any other account. It is suggested that the access level for this account be set to VIEWER or some other read only level.
The anonymous user account will not receive standard notifications and can not monitor issues.
The default setting is blank/undefined. You only need to define this setting when $g_allow_anonymous_login is set to ON.
Re: Allowing Anonymous Users to View Issues
Posted: 05 Jan 2013, 18:52
by trekcaptainusa
atrol wrote:http://www.mantisbt.org/docs/master-1.2 ... ONFIG.MISC
$g_allow_anonymous_login
Enable anonymous access to Mantis. You must also specify $g_anonymous_account as the account which anonymous users will browse Mantis with. The default setting is OFF.
$g_anonymous_account
Define the account which anonymous users will assume when using Mantis. This account is considered by Mantis to be protected from modification. In other words, this account can only be modified by users with an access level equal to or higher than $g_manage_user_threshold. Anonymous users will not be able to adjust preferences or change account settings like normal users can.
You will need to create a new account to use for this $g_anonymous_account setting. When creating the account you should specify a password, email address and so forth in the same way you'd create any other account. It is suggested that the access level for this account be set to VIEWER or some other read only level.
The anonymous user account will not receive standard notifications and can not monitor issues.
The default setting is blank/undefined. You only need to define this setting when $g_allow_anonymous_login is set to ON.
I set these, but its still not working, how do I diagnose what's wrong?
Re: Allowing Anonymous Users to View Issues
Posted: 05 Jan 2013, 19:14
by atrol
trekcaptainusa wrote:
I set these
What exactly did you do?
Re: Allowing Anonymous Users to View Issues
Posted: 06 Jan 2013, 14:34
by trekcaptainusa
I added these lines to config_inc.php:
Code: Select all
$g_allow_anonymous_login = 'ON';
$g_anonymous_account = 'Anonymous';
With no definition in the documentation as to possible values (String; ON/OFF; etc.), i'm kinda guessing at what goes into each field ("Anonymous" is a user I added to the system for this purpose, as the docs said i had to create a user for that purpose)
Re: Allowing Anonymous Users to View Issues
Posted: 06 Jan 2013, 15:03
by atrol
You have to set it the following way without quotes
ON is a numeric constant defined in core/constant_inc.php and not a string.
Re: Allowing Anonymous Users to View Issues
Posted: 06 Jan 2013, 15:48
by trekcaptainusa
Ahh, that'd be the issue. I fixed it, thanks. But, the documentation could potentially be better for that, such as example lines for the config. Just a suggestion. Thanks.
Re: Allowing Anonymous Users to View Issues
Posted: 06 Jan 2013, 16:04
by atrol
I recommend to study config_defaults_inc.php
IMO this is the best documentation of configuration options you can get.