Customization Access Level Enum Issue

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Jut
Posts: 9
Joined: 29 Oct 2021, 04:21

Customization Access Level Enum Issue

Post by Jut »

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

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';
Created a custom_constants_inc.php in my config folder and defined them

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 );
Lastly I used the config_inc.php in my config folder to add:

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';
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.
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Customization Access Level Enum Issue

Post by atrol »

The name of the configuration variable in custom_strings_inc.php must be $s_status_enum_string
Please use Search before posting and read the Manual
Jut
Posts: 9
Joined: 29 Oct 2021, 04:21

Re: Customization Access Level Enum Issue

Post by Jut »

Thank you so much, stupid mistake on my part. I sincerely appreciate your help. :D
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Customization Access Level Enum Issue

Post by atrol »

YW, you are not the first one telling to have double checked the documentation :D
Please use Search before posting and read the Manual
Post Reply