Index: bug_report_advanced_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_report_advanced_page.php,v
retrieving revision 1.45
diff -u -r1.45 bug_report_advanced_page.php
--- bug_report_advanced_page.php	24 Oct 2004 19:04:36 -0000	1.45
+++ bug_report_advanced_page.php	19 Feb 2005 16:09:17 -0000
@@ -251,6 +251,11 @@
 			|| ( ( AUTO == config_get( 'show_product_version' ) )
 						&& ( count( version_get_all_rows( $t_project_id ) ) > 0 ) );
 	if ( $t_show_version ) {
+		$t_product_version_released_mask = VERION_RELEASED;
+		
+		if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) {
+			$t_product_version_released_mask = VERSION_ALL;
+		}
 ?>
 <!-- Product Version -->
 <tr <?php echo helper_alternate_class() ?>>
@@ -259,7 +264,7 @@
 	</td>
 	<td>
 		<select tabindex="9" name="product_version">
-			<?php print_version_option_list( $f_product_version, $t_project_id, VERSION_RELEASED ) ?>
+			<?php print_version_option_list( $f_product_version, $t_project_id, $t_product_version_released_mask ) ?>
 		</select>
 	</td>
 </tr>
Index: bug_report_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_report_page.php,v
retrieving revision 1.48
diff -u -r1.48 bug_report_page.php
--- bug_report_page.php	24 Oct 2004 19:28:46 -0000	1.48
+++ bug_report_page.php	19 Feb 2005 16:09:26 -0000
@@ -176,6 +176,11 @@
 			|| ( ( AUTO == config_get( 'show_product_version' ) )
 						&& ( count( version_get_all_rows( $t_project_id ) ) > 0 ) );
 	if ( $t_show_version ) {
+		$t_product_version_released_mask = VERION_RELEASED;
+		
+		if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) {
+			$t_product_version_released_mask = VERSION_ALL;
+		}
 ?>
 <!-- Product Version -->
 <tr <?php echo helper_alternate_class() ?>>
@@ -184,7 +189,7 @@
 	</td>
 	<td>
 		<select tabindex="9" name="product_version">
-			<?php print_version_option_list( $f_product_version, $t_project_id, VERSION_RELEASED ) ?>
+			<?php print_version_option_list( $f_product_version, $t_project_id, $t_product_version_released_mask ) ?>
 		</select>
 	</td>
 </tr>
Index: bug_update_advanced_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_update_advanced_page.php,v
retrieving revision 1.83
diff -u -r1.83 bug_update_advanced_page.php
--- bug_update_advanced_page.php	13 Oct 2004 23:35:07 -0000	1.83
+++ bug_update_advanced_page.php	19 Feb 2005 16:12:27 -0000
@@ -333,10 +333,15 @@
 	</td>
 	<td>
 		<?php 
-			if ( $t_show_version ) { 
+			if ( $t_show_version ) {
+				$t_product_version_released_mask = VERION_RELEASED;
+				
+				if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) {
+					$t_product_version_released_mask = VERSION_ALL;
+				} 
 		?>
 		<select name="version">
-			<?php print_version_option_list( $t_bug->version, $t_bug->project_id, VERSION_RELEASED ) ?>
+			<?php print_version_option_list( $t_bug->version, $t_bug->project_id, $t_product_version_released_mask ) ?>
 		</select>
 		<?php
 			}else{
Index: bug_update_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/bug_update_page.php,v
retrieving revision 1.87
diff -u -r1.87 bug_update_page.php
--- bug_update_page.php	13 Oct 2004 23:35:07 -0000	1.87
+++ bug_update_page.php	19 Feb 2005 16:13:03 -0000
@@ -251,6 +251,11 @@
 			|| ( ( AUTO == config_get( 'show_product_version' ) ) 
 						&& ( count( version_get_all_rows( $t_bug->project_id ) ) > 0 ) );
 	if ( $t_show_version ) { 
+				$t_product_version_released_mask = VERION_RELEASED;
+				
+				if (access_has_project_level( config_get( 'report_issues_for_unreleased_versions_threshold' ) ) ) {
+					$t_product_version_released_mask = VERSION_ALL;
+				} 
 ?>
 	<!-- Product Version -->
 	<td class="category">
@@ -258,7 +263,7 @@
 	</td>
 	<td>
 		<select name="version">
-			<?php print_version_option_list( $t_bug->version, $t_bug->project_id, VERSION_RELEASED ) ?>
+			<?php print_version_option_list( $t_bug->version, $t_bug->project_id, $t_product_version_released_mask ) ?>
 		</select>
 	</td>
 </tr>
Index: config_defaults_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v
retrieving revision 1.225
diff -u -r1.225 config_defaults_inc.php
--- config_defaults_inc.php	11 Dec 2004 07:21:51 -0000	1.225
+++ config_defaults_inc.php	19 Feb 2005 16:18:16 -0000
@@ -941,6 +941,9 @@
 	# access level needed to re-open bugs
 	$g_reopen_bug_threshold			= DEVELOPER;
 
+	# access level needed to assign bugs to unreleased product versions
+	$g_report_issues_for_unreleased_versions_threshold = DEVELOPER;
+
 	# this array sets the access thresholds needed to enter each status listed.
 	# if a status is not listed, it falls back to $g_update_bug_status_threshold
 	# example: $g_set_status_threshold = array( ACKNOWLEDGED => MANAGER, CONFIRMED => DEVELOPER, CLOSED => MANAGER );
