Skip to content

Commit

Permalink
Added a global option to control what access levels can delete bugs.
Browse files Browse the repository at this point in the history
git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@812 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed Mar 26, 2002
1 parent 3290a8b commit 115dd95
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -14,6 +14,7 @@ Mantis
* Added Hungarian translation.
* 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.
* Removed access_min and access threshold concepts from the user and project management.

03.15.2002 - 0.17.1
Expand Down
8 changes: 8 additions & 0 deletions doc/configuration.html
Expand Up @@ -1168,6 +1168,14 @@ <h2>Content</h2>
Allow developers and above to close bugs immediately when resolving bugs.
</td>
</tr>
<tr>
<td width="20%" bgcolor="#ddddff">
$g_allow_bug_delete_access_level
</td>
<td width="80%" bgcolor="#ffffff">
Allow the specified access level and above to delete bugs.
</td>
</tr>
<tr>
<td width="20%" bgcolor="#ddddff">
$g_allow_account_delete
Expand Down
2 changes: 1 addition & 1 deletion view_bug_advanced_page.php
Expand Up @@ -383,7 +383,7 @@
<td>&nbsp;</td>
<?php } # CLOSE form END ?>
<?php # DELETE form BEGIN ?>
<?php if ( access_level_check_greater_or_equal( DEVELOPER ) ) { ?>
<?php if ( access_level_check_greater_or_equal( $g_allow_bug_delete_access_level ) ) { ?>
<form method="post" action="<?php echo $g_bug_delete_page ?>">
<input type="hidden" name="f_id" value="<?php echo $f_id ?>">
<input type="hidden" name="f_bug_text_id" value="<?php echo $v_bug_text_id ?>">
Expand Down
2 changes: 1 addition & 1 deletion view_bug_page.php
Expand Up @@ -284,7 +284,7 @@
<td>&nbsp;</td>
<?php } # CLOSE form END ?>
<?php # DELETE form BEGIN ?>
<?php if ( access_level_check_greater_or_equal( DEVELOPER ) ) { ?>
<?php if ( access_level_check_greater_or_equal( $g_allow_bug_delete_access_level ) ) { ?>
<form method="post" action="<?php echo $g_bug_delete_page ?>">
<input type="hidden" name="f_id" value="<?php echo $f_id ?>">
<input type="hidden" name="f_bug_text_id" value="<?php echo $v_bug_text_id ?>">
Expand Down

0 comments on commit 115dd95

Please sign in to comment.