From: <vb...@us...> - 2003-11-12 20:40:12
|
Update of /cvsroot/mantisbt/mantisbt/core In directory sc8-pr-cvs1:/tmp/cvs-serv518/core Modified Files: html_api.php Log Message: Fix #3417: setting $g_manage_news_threshold to 'DEVELOPER' can't add new news. M code/html_api.php (print_menu) Use configured thresholds rather than hard-coded access levels for managing news / projects. Index: html_api.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v retrieving revision 1.77 retrieving revision 1.78 diff -u -d -r1.77 -r1.78 --- html_api.php 22 Aug 2003 11:48:34 -0000 1.77 +++ html_api.php 12 Nov 2003 20:40:08 -0000 1.78 @@ -370,7 +370,7 @@ echo '<a href="proj_doc_page.php">' . lang_get( 'docs_link' ) . '</a> | '; - if ( access_has_project_level( MANAGER ) ) { + if ( access_has_project_level( config_get( 'manage_project_threshold' ) ) ) { if ( access_has_project_level( ADMINISTRATOR ) ) { $t_link = 'manage_user_page.php'; } else { @@ -378,7 +378,7 @@ } echo "<a href=\"$t_link\">" . lang_get( 'manage_link' ) . '</a> | '; } - if ( access_has_project_level( MANAGER ) ) { + if ( access_has_project_level( config_get( 'manage_news_threshold' ) ) ) { # Admin can edit news for All Projects (site-wide) if ( ( ALL_PROJECTS != helper_get_current_project() ) || ( access_has_project_level( ADMINISTRATOR ) ) ) { echo '<a href="news_menu_page.php">' . lang_get( 'edit_news_link' ) . '</a> | '; |