Sunday, 26 July 2009

Experiences with Mantis 1.2 - Part 2 – Setting up User Roles

I wanted to set up some basic roles so different users could have different permissions. The roles I wanted were:
  • Viewer
  • Client
  • Developer
  • Tester
  • Administrator

In config_inc.php I added:
    $g_access_levels_enum_string = '10:viewer, 20:client, 30:developer, 40:tester, 90:administrator';


Then I had to assign strings to these values. Seeing I only speak English I only edited the English strings files. In lang/strings_english.txt I edited it to read:
$s_access_levels_enum_string = '10:viewer,20:client,30:developer,40:tester,90:administrator';


And the roles have been created and you can now create new users who have those roles

Past Experiences with Mantis 1.2:

0 comments: