Customization Access Level Enum Issue
Posted: 29 Oct 2021, 04:32
So I have customized mantis bug tracker for purpose of a roleplay community that I run and I wanted to switch the developer style access levels to something more fitting as such I changed them to ranks, however, while the proper name appears almost everywhere on the custom mantis page, under 'Manage Configuration' => Permissions Report & Workflow Thresholds the levels are listed by their assigned number surrounded @ symbols. i.e @ 25 @
I double checked the documentation and I don't believe I missed a step but was hoping someone could help point out my error.
I did completely overwrite all default access levels minus VIEWER / ADMINISTRATOR
Steps I completed:
Created a custom_strings_inc.php in my config folder and defined them
Created a custom_constants_inc.php in my config folder and defined them
Lastly I used the config_inc.php in my config folder to add:
Any help or guidance would be extremely helpful as I am tearing through code trying to figure out where I made a mistake omitting something.
I double checked the documentation and I don't believe I missed a step but was hoping someone could help point out my error.
I did completely overwrite all default access levels minus VIEWER / ADMINISTRATOR
Steps I completed:
Created a custom_strings_inc.php in my config folder and defined them
Code: Select all
$g_access_levels_enum_string =
'10:Viewer,25:Clerk,40:Officer,45:Sergeant,55:Lieutenant,60:Captain,65:Department,70:Minister,90:Administrator';Code: Select all
# access levels
define( 'ANYBODY', 0 );
define( 'VIEWER', 10 );
define( 'CLERK', 25 );
define( 'OFFICER', 40 );
define( 'SERGEANT', 45 );
define( 'LIEUTENANT', 55 );
define( 'CAPTAIN', 60 );
define( 'DEPARTMENT', 65 );
define( 'MINISTER', 70 );
define( 'ADMINISTRATOR', 90 );
define( 'NOBODY', 100 );Code: Select all
$g_access_levels_enum_string = '10:viewer,25:clerk,40:officer,45:sergeant,55:lieutenant,60:captain,65:department,70:minister,90:administrator';