? mantisbt
Index: manage_proj_edit_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_edit_page.php,v
retrieving revision 1.79
diff -u -r1.79 manage_proj_edit_page.php
--- manage_proj_edit_page.php	14 Jul 2004 22:16:34 -0000	1.79
+++ manage_proj_edit_page.php	3 Aug 2004 01:49:59 -0000
@@ -22,7 +22,10 @@
 <?php
 	$f_project_id = gpc_get_int( 'project_id' );
 
-	access_ensure_project_level( config_get( 'manage_project_threshold' ), $f_project_id );
+	if ( ! access_has_project_level( config_get( 'manage_project_threshold' ), $f_project_id )
+	    && ! access_has_global_level( ADMINISTRATOR ) ) {
+		access_denied();
+	}
 
 	$row = project_get_row( $f_project_id );
 ?>
Index: manage_proj_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/manage_proj_page.php,v
retrieving revision 1.11
diff -u -r1.11 manage_proj_page.php
--- manage_proj_page.php	20 Jul 2004 15:51:50 -0000	1.11
+++ manage_proj_page.php	3 Aug 2004 01:49:59 -0000
@@ -77,10 +77,8 @@
 	foreach ( $t_projects as $t_project ) {
 		extract( $t_project, EXTR_PREFIX_ALL, 'v' );
 
-        if ( !access_has_project_level ( config_get( 'manage_project_threshold' ), $v_id ) ) {
-		  continue;
-		}
-
+    if ( access_has_project_level ( config_get( 'manage_project_threshold' ), $v_id )
+    		|| access_has_global_level ( ADMINISTRATOR ) ) {
 ?>
 <tr <?php echo helper_alternate_class() ?>>
 	<td>
@@ -100,6 +98,7 @@
 	</td>
 </tr>
 <?php
+		}
 	} # End of foreach loop over projects
 ?>
 </table>
Index: core/html_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/html_api.php,v
retrieving revision 1.114
diff -u -r1.114 html_api.php
--- core/html_api.php	30 Jul 2004 12:46:09 -0000	1.114
+++ core/html_api.php	3 Aug 2004 01:50:00 -0000
@@ -426,7 +426,7 @@
 
 				# Manage Users (admins) or Manage Project (managers)
 				if ( access_has_project_level( config_get( 'manage_project_threshold' ) ) ) {
-					if ( access_has_project_level( ADMINISTRATOR ) ) {
+					if ( access_has_global_level( config_get( 'manage_user_threshold' ) ) ) {
 						$t_link = 'manage_user_page.php';
 					} else {
 						$t_link = 'manage_proj_page.php';
