Skip to content

Commit 297c793

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 f0248c8 commit 297c793

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
@@ -167,8 +167,8 @@
167167
# that current user has rights to assign the issue
168168
$t_threshold = access_get_status_threshold( $t_assign_status, bug_get_field( $t_bug_id, 'project_id' ) );
169169
if ( access_has_bug_level( config_get( 'update_bug_assign_threshold', config_get( 'update_bug_threshold' ) ), $t_bug_id ) ) {
170-
if ( access_has_bug_level( $t_threshold , $t_bug_id, $f_assign ) ) {
171-
if ( bug_check_workflow($t_status, $t_assign_status ) ) {
170+
if ( access_has_bug_level( config_get( 'handle_bug_threshold' ), $t_bug_id, $f_assign ) ) {
171+
if ( bug_check_workflow( $t_status, $t_assign_status ) ) {
172172
/** @todo we need to issue a helper_call_custom_function( 'issue_update_validate', array( $t_bug_id, $t_bug_data, $f_bugnote_text ) ); */
173173
bug_assign( $t_bug_id, $f_assign, $f_bug_notetext, $f_bug_noteprivate );
174174
helper_call_custom_function( 'issue_update_notify', array( $t_bug_id ) );

0 commit comments

Comments
 (0)
Please sign in to comment.