Skip to content

Commit

Permalink
Fix #2989: Allow managers to manage bugnotes.
Browse files Browse the repository at this point in the history
M bugnote_view_inc.php
- Allowed users who have 'manage_project_threshold' to manage the notes
by being able to Edit, Delete, Make Private or Make Public.  Before only
admins + reporter of the bugnote were able to do such behaviour.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@1999 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
vboctor committed Feb 23, 2003
1 parent 669c488 commit 871c08b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bugnote_view_inc.php
Expand Up @@ -6,7 +6,7 @@
# See the files README and LICENSE for details

# --------------------------------------------------------
# $Id: bugnote_view_inc.php,v 1.1 2003-02-20 00:15:49 vboctor Exp $
# $Id: bugnote_view_inc.php,v 1.2 2003-02-23 12:44:40 vboctor Exp $
# --------------------------------------------------------
?>
<?php
Expand Down Expand Up @@ -93,7 +93,7 @@
# only admins and the bugnote creator can edit/delete this bugnote
# bug must be open to be editable
if ( bug_get_field( $f_bug_id, 'status' ) < config_get( 'bug_resolved_status_threshold' ) ) {
if (( access_has_project_level( ADMINISTRATOR ) ) ||
if ( ( access_has_project_level( config_get( 'manage_project_threshold' ) ) ) ||
( $v3_reporter_id == $t_user_id )) {
print_bracket_link( 'bugnote_edit_page.php?bugnote_id='.$v3_id, lang_get( 'bugnote_edit_link' ) );
print_bracket_link( 'bugnote_delete.php?bugnote_id='.$v3_id, lang_get( 'delete_link' ) );
Expand Down
1 change: 1 addition & 0 deletions doc/ChangeLog
Expand Up @@ -27,6 +27,7 @@ Mantis ChangeLog
* Fix #2978: URLs not hyperlinked in news_add page.
* Fix #2980: Escaping fixes are not applied to the bug history table.
* Fix #2982: Having email_set_category set to EMAIL_CATEGORY_PROJECT_CATEGORY erased various mail headers.
* Fix #2989: Allow managers to manage bugnotes.
* DB Upgrade: Added "id" primary key to bug history table.
* Languages: Updated German localisation.
* Changed confit option (default_notify_flags): remove 'admin', 'manager', and 'threshold' categories and add 'threshold_min' and 'threshold_max'
Expand Down

0 comments on commit 871c08b

Please sign in to comment.