Page 1 of 1
How to add new roles in Mantis?
Posted: 13 Mar 2008, 12:13
by DaVinci
i want to add three new roles/access level in mantis and then define access for thise two roles..
were do i go to add new rols so that they will be available in the User Administration meny and can be assigned to a new user?
im suning Mantis 1.1.0
Re: How to add new roles in Mantis?
Posted: 13 Mar 2008, 16:46
by smig1o
You need to change $g_access_level_enum_string; i.e:
$g_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,60:task manager,70:manager,90:administrator';
You should put modified version in your config_inc.php.
Here I've added task manager role. then you need to find
$s_access_level_enum_string and add it there too.
Now go to administration page and set rights, etc.
Re: How to add new roles in Mantis?
Posted: 14 Mar 2008, 08:28
by DaVinci
what do u mean by that i have to put the modified version in config_inc.php?
if u meant that i have to put <b>$g_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,60:task manager,70:manager,90:administrator';
</b> in config_inc.php then i have done that..
and
i have also modified the string in: config_default_inc.php and in the local translation file
after the modifications i get: @60@ in the access-level menu instead of Task Manager
what did i do wrong?
Re: How to add new roles in Mantis?
Posted: 14 Mar 2008, 13:28
by smig1o
DaVinci wrote:what do u mean by that i have to put the modified version in config_inc.php?
if u meant that i have to put <b>$g_access_levels_enum_string = '10:viewer,25:reporter,40:updater,55:developer,60:task manager,70:manager,90:administrator';
</b> in config_inc.php then i have done that..
Good!
DaVinci wrote:
and
i have also modified the string in: config_default_inc.php and in the local translation file
after the modifications i get: @60@ in the access-level menu instead of Task Manager
what did i do wrong?
value from config_inc.php overwrites the one from config_default_inc.php. You shouldnt touch config_default_inc.php.
@60@ means that Mantis didnt find 60 in $s_access_level_enum_string in your strings_*.txt.
Check this again
Re: How to add new roles in Mantis?
Posted: 14 Mar 2008, 14:12
by DaVinci
thankyou..
its working now

Re: How to add new roles in Mantis?
Posted: 15 Mar 2008, 11:08
by smig1o
DaVinci wrote:thankyou..
its working now

Great

Re: How to add new roles in Mantis?
Posted: 16 Feb 2009, 15:29
by JoeyJoe
So...
What is the resolution to the @60@ problem that you experienced? And how did you get it to "it's working now..."??
Searching this forum for @60@ is impossible.
Re: How to add new roles in Mantis?
Posted: 29 Apr 2009, 11:00
by DaVinci
i forgot to add the rolls in language file
it works now after i did that
Re: How to add new roles in Mantis?
Posted: 07 Mar 2013, 14:40
by spacomp
This was really helpful.
I have a role created which like this
ADMINISTRATOR < COORDINATOR > MANAGER
COORDINATOR is in the middle of Manager and a Admin.
Now I want to give the "COORDINATOR" a privilege to
1. Create Users
2. Create Project
3. Manage Custom Fields
And most other things that a ADMIN can do but a MANAGER cannot do.
I am getting a error when updated with the THRESHOLD in the "config_defaults_in.php"
Re: How to add new roles in Mantis?
Posted: 19 Aug 2013, 13:31
by judan
spacomp you should never edit config_defaults_in.php. All changes must go in config_inc.php. This is because the values in config_inc.php will overwrite those in config_defaults_in. And also if something goes wrong you will need the defaults file to restore mantis to original state.
Re: How to add new roles in Mantis?
Posted: 19 Aug 2013, 13:37
by judan
Can someone tell me what is the significance of the numbers before each role? e.g 10:viewer,25:reporter,40:updater. Does these numbers matter? If i were to add a new role what number should i put?
Re: How to add new roles in Mantis?
Posted: 19 Aug 2013, 20:17
by atrol
Re: How to add new roles in Mantis?
Posted: 24 Jul 2021, 22:54
by bamaustin2000
the above message suffered linkrot since 2013 (go figure!)
Section 7.3 Enumerations of the MantisBT Admin Guide can now be found at:
https://www.mantisbt.org/docs/master/en ... mize.enums