Skip to content

Commit

Permalink
Added g_bug_move_access_level to control what access level can move b…
Browse files Browse the repository at this point in the history
…ugs to other projects.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@823 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Mar 28, 2002
1 parent e304dab commit fa42120
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -20,6 +20,7 @@ Mantis
* Added g_bug_link_tag to let users customize how to create bug links.
* Added a "jump to bugnotes" quicklink at the top of the view bug pages.
* Added a global option to control what access levels can delete bugs.
* Added g_bug_move_access_level to control what access level can move bugs to other projects.
* Removed access_min and access threshold concepts from the user and project management.
* Removed extra "echo" in news archive page.

Expand Down
8 changes: 8 additions & 0 deletions doc/configuration.html
Expand Up @@ -1184,6 +1184,14 @@ <h2>Content</h2>
Allow the specified access level and above to delete bugs.
</td>
</tr>
<tr>
<td width="20%" bgcolor="#ddddff">
$g_bug_move_access_level
</td>
<td width="80%" bgcolor="#ffffff">
Allow the specified access level and above to move bugs between projects.
</td>
</tr>
<tr>
<td width="20%" bgcolor="#ddddff">
$g_allow_account_delete
Expand Down
23 changes: 15 additions & 8 deletions view_all_inc.php
Expand Up @@ -100,11 +100,18 @@
</form>
</table>

<?php
$col_count = 7;
if ( access_level_check_greater_or_equal( $g_bug_move_access_level ) ) {
$col_count = 8;
}
?>

<p>
<table class="width100" cellspacing="1">
<form method="post" action="<?php echo $g_view_all_bug_update ?>">
<table class="width100" cellspacing="1">
<tr>
<td class="form-title" colspan="8">
<td class="form-title" colspan="<?php echo $col_count ?>">
<?php echo $s_viewing_bugs_title ?>
<?php
if ( $row_count > 0 ) {
Expand Down Expand Up @@ -137,9 +144,11 @@
</td>
</tr>
<tr class="row-category">
<?php if ( access_level_check_greater_or_equal( $g_bug_move_access_level ) ) { ?>
<td class="center" width="2%">
&nbsp;
</td>
<?php } ?>
<td class="center" width="5%">
<?php print_view_bug_sort_link( $link_page, "P", "priority", $f_sort, $f_dir ) ?>
<?php print_sort_icon( $f_dir, $f_sort, "priority" ) ?>
Expand Down Expand Up @@ -214,13 +223,11 @@

?>
<tr bgcolor="<?php echo $status_color ?>">
<?php if ( access_level_check_greater_or_equal( $g_bug_move_access_level ) ) { ?>
<td>
<?php if ( access_level_check_greater_or_equal( UPDATER ) ) { ?>
<input type="checkbox" name="f_bug_arr[]" value="<?php echo $v_id ?>">
<?php } else { ?>
&nbsp;
<?php } ?>
</td>
<?php } ?>
<td class="center">
<?php
if ( ON == $g_show_priority_text ) {
Expand Down Expand Up @@ -289,7 +296,7 @@
<?php
}
?>
<?php if ( access_level_check_greater_or_equal( UPDATER ) ) { ?>
<?php if ( access_level_check_greater_or_equal( $g_bug_move_access_level ) ) { ?>
<tr>
<td colspan="9">
<select name="f_project_id">
Expand All @@ -304,9 +311,9 @@
<input type="submit" value="<?php echo $s_move_bugs ?>">
</td>
</tr>
</form>
<?php } ?>
</table>
</form>

<?php # Show NEXT and PREV links as needed ?>
<p>
Expand Down

0 comments on commit fa42120

Please sign in to comment.