View Issue Details

IDProjectCategoryView StatusLast Update
0006481mantisbtpreferencespublic2009-07-09 09:57
Reporterrobson Assigned Todhx  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.0.0rc3 
Summary0006481: Managers cannot get to users management page
Description

When I changed $g_manage_user_treshold = MANAGER and logged in to manager account, I still cannot get to "Manage Users" page diretly: management link on Mantis bar showed project management page, no link to user management. I can however access "manage_user_page.php" by editing URL in my browser.

TagsNo tags attached.
Attached Files
html_api.php.diff (1,808 bytes)   
Index: core/html_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v
retrieving revision 1.184.4.1
diff -c -r1.184.4.1 html_api.php
*** core/html_api.php	8 Dec 2005 22:28:16 -0000	1.184.4.1
--- core/html_api.php	9 Dec 2005 13:45:26 -0000
***************
*** 498,507 ****
  				}
  
  				# Manage Users (admins) or Manage Project (managers) or Manage Custom Fields
! 				$t_show_access = min( config_get( 'manage_project_threshold' ), config_get( 'manage_custom_fields_threshold' ), ADMINISTRATOR );
  				if ( access_has_global_level( $t_show_access) || access_has_any_project( $t_show_access ) )  {
  					$t_current_project = helper_get_current_project();
! 					if ( access_has_project_level( ADMINISTRATOR, $t_current_project ) ) {
  						$t_link = 'manage_user_page.php';
  					} else {
  						if ( access_has_project_level( config_get( 'manage_project_threshold' ), $t_current_project )
--- 498,511 ----
  				}
  
  				# Manage Users (admins) or Manage Project (managers) or Manage Custom Fields
! 				$t_show_access = min( config_get( 'manage_project_threshold' ), 
! 						      config_get( 'manage_custom_fields_threshold' ), 
! 						      config_get( 'manage_user_threshold' ), 
! 						      ADMINISTRATOR );
  				if ( access_has_global_level( $t_show_access) || access_has_any_project( $t_show_access ) )  {
  					$t_current_project = helper_get_current_project();
! 					$t_user_access = config_get('manage_user_threshold');
! 					if ( access_has_project_level( ADMINISTRATOR, $t_current_project ) || access_has_global_level($t_user_access)) {
  						$t_link = 'manage_user_page.php';
  					} else {
  						if ( access_has_project_level( config_get( 'manage_project_threshold' ), $t_current_project )
html_api.php.diff (1,808 bytes)   

Relationships

duplicate of 0006524 closeddhx Patch: 'manage users' link is displayed only to admins 
has duplicate 0007197 closeddhx Some project admins do not have access to the manage link when clicking 
has duplicate 0007980 closeddhx Manage menu item links to unaccesable location for project admins 
has duplicate 0006402 closeddhx project administrator page "Access denied" 

Activities

robson

robson

2005-12-09 08:46

reporter   ~0011757

I've tweaked a little html_api.php, is that OK?

dhx

dhx

2009-06-26 13:20

reporter   ~0022280

I can confirm this still requires some work... I'll volunteer! :)

Thanks