How to add new roles in Mantis?
Moderators: Developer, Contributor
How to add new roles in Mantis?
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
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?
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.
$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.
'Press any key to continue or any other key to quit'
Re: How to add new roles in Mantis?
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?
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?
Good!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..
value from config_inc.php overwrites the one from config_default_inc.php. You shouldnt touch config_default_inc.php.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?
@60@ means that Mantis didnt find 60 in $s_access_level_enum_string in your strings_*.txt.
Check this again
'Press any key to continue or any other key to quit'
Re: How to add new roles in Mantis?
thankyou..
its working now
its working now
Re: How to add new roles in Mantis?
GreatDaVinci wrote:thankyou..
its working now
'Press any key to continue or any other key to quit'
Re: How to add new roles in Mantis?
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.
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?
i forgot to add the rolls in language file
it works now after i did that
it works now after i did that
Re: How to add new roles in Mantis?
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"
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?
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.
~Jailall~
Re: How to add new roles in Mantis?
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?
~Jailall~
-
- Posts: 4
- Joined: 28 May 2019, 18:59
Re: How to add new roles in Mantis?
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
Section 7.3 Enumerations of the MantisBT Admin Guide can now be found at:
https://www.mantisbt.org/docs/master/en ... mize.enums