From: Gianluca S. <gi...@us...> - 2007-08-30 08:18:56
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3454/core Modified Files: html_api.php Log Message: Fix 8324: Rendering of "Manage Users" menu link ignores $g_manage_user_threshold Index: html_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v retrieving revision 1.212 retrieving revision 1.213 diff -u -d -r1.212 -r1.213 --- html_api.php 24 Aug 2007 19:04:42 -0000 1.212 +++ html_api.php 30 Aug 2007 08:18:47 -0000 1.213 @@ -546,10 +546,10 @@ } # 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 ); + $t_show_access = min( config_get( 'manage_user_threshold' ), config_get( 'manage_project_threshold' ), config_get( 'manage_custom_fields_threshold' ) ); 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 ) ) { + if ( access_has_global_level( config_get( 'manage_user_threshold' ) ) ) { $t_link = 'manage_user_page.php'; } else { if ( access_has_project_level( config_get( 'manage_project_threshold' ), $t_current_project ) @@ -688,7 +688,7 @@ } PRINT '<br /><div align="center">'; - if ( access_has_global_level( ADMINISTRATOR ) ) { + if ( access_has_global_level( config_get( 'manage_user_threshold' ) ) ) { print_bracket_link( $t_manage_user_page, lang_get( 'manage_users_link' ) ); } if ( access_has_project_level( config_get( 'manage_project_threshold' ) ) ) { |