Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0f702d5

Browse files
committedDec 14, 2011
Allow mass-assign of issues to Updaters
The code handling assignment in bug_actiongroup.php had an incorrect check for the access level of the user the issues are being assigned to. It was checked against $t_threshold, which is the minimum access level required of the current user to perform the action, instead of the access level to be assigned issues to (handle_bug_threshold). This affects MantisBT instances where Updaters (or aother role) is allowed to handle issues (through custom Workflow Thresholds) Fixes #12324
1 parent 42eac59 commit 0f702d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎bug_actiongroup.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@
129129
# that current user has rights to assign the issue
130130
$t_threshold = access_get_status_threshold( $t_assign_status, bug_get_field( $t_bug_id, 'project_id' ) );
131131
if ( access_has_bug_level( config_get( 'update_bug_assign_threshold', config_get( 'update_bug_threshold' ) ), $t_bug_id ) ) {
132-
if ( access_has_bug_level( $t_threshold , $t_bug_id, $f_assign ) ) {
133-
if ( bug_check_workflow($t_status, $t_assign_status ) ) {
132+
if ( access_has_bug_level( config_get( 'handle_bug_threshold' ), $t_bug_id, $f_assign ) ) {
133+
if ( bug_check_workflow( $t_status, $t_assign_status ) ) {
134134
/** @todo we need to issue a helper_call_custom_function( 'issue_update_validate', array( $t_bug_id, $t_bug_data, $f_bugnote_text ) ); */
135135
bug_assign( $t_bug_id, $f_assign, $f_bug_notetext, $f_bug_noteprivate );
136136
helper_call_custom_function( 'issue_update_notify', array( $t_bug_id ) );

0 commit comments

Comments
 (0)
Please sign in to comment.