View Issue Details

IDProjectCategoryView StatusLast Update
0006524mantisbtadministrationpublic2010-04-23 23:22
Reporterpieter Assigned Todhx  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.0.0rc4 
Target Version1.2.0rc1Fixed in Version1.2.0rc1 
Summary0006524: Patch: 'manage users' link is displayed only to admins
Description

Mantis features the following config variable:

$g_manage_user_threshold = ADMINISTRATOR;

If this variable is set to a lower value, e.g. MANAGER, then in the "management" submenu, a link "manage users" should appear. But it doesn't. (see attachment).

To solve this, please apply the following patch to file $MANTIS/core/html_api.php:

634c642
< if ( access_has_global_level( ADMINISTRATOR ) ) {

          if ( access_has_global_level( config_get( 'manage_user_threshold' ) ) ) {
Steps To Reproduce
  • in config_inc.php, set '$g_manage_user_threshold = MANAGER;'
  • create a user account with "MANAGER" perms.
  • log in with this account.
  • click on "manage" in the main menu.

The "manage users" submenu-item doesn't show!

Tagspatch, screenshot
Attached Files
snapshot.png (27,013 bytes)   
snapshot.png (27,013 bytes)   

Relationships

has duplicate 0006481 closeddhx Managers cannot get to users management page 
has duplicate 0006360 closeddhx $g_manage_user_threshold = MANAGER; Does not Work 
has duplicate 0006695 closeddhx "Manage Users" menu entry in "Manage" page menu not shown according to $g_manage_user_threshold 
has duplicate 0006698 closedthraxisp "Manage Users" menu entry in "Manage" page menu not shown according to $g_manage_user_threshold 
has duplicate 0006697 closedthraxisp "Manage Users" menu entry in "Manage" page menu not shown according to $g_manage_user_threshold 
has duplicate 0007519 closeddhx Impossible to have the link to user manage page if you are not a admin 
has duplicate 0006752 closeddhx permission to manage user accounts 
child of 0010597 closeddhx Remove hardcoded use of ADMINISTRATOR constant 

Activities

dhx

dhx

2009-10-27 08:45

reporter   ~0023408

This was fixed ages ago as per:

3f4914ce (Siebrand Mazeland 2008-10-10 19:32:31 +0000 787) if( access_has_global_level( config_get( 'manage_user_threshold' ) )

Closing this ticket as fixed/resolved.