Skip to content

Commit 0da3f7a

Browse files
committedJan 9, 2012
Fix Move bugs from projects with access < report_bug_threshold
The access check in bug_actiongroup.php was not correct. It should verify the user's report_bug_threshold in the target project, not the current project. Fixes #13748
1 parent 0dd1ae0 commit 0da3f7a

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
@@ -136,8 +136,8 @@
136136

137137
case 'MOVE':
138138
$f_project_id = gpc_get_int( 'project_id' );
139-
if ( access_has_bug_level( config_get( 'move_bug_threshold' ), $t_bug_id ) &&
140-
access_has_project_level( config_get( 'report_bug_threshold' ), $f_project_id ) ) {
139+
if( access_has_bug_level( config_get( 'move_bug_threshold' ), $t_bug_id ) &&
140+
access_has_project_level( config_get( 'report_bug_threshold', null, null, $f_project_id ), $f_project_id ) ) {
141141
/** @todo we need to issue a helper_call_custom_function( 'issue_update_validate', array( $t_bug_id, $t_bug_data, $f_bugnote_text ) ); */
142142
bug_move( $t_bug_id, $f_project_id );
143143
helper_call_custom_function( 'issue_update_notify', array( $t_bug_id ) );

0 commit comments

Comments
 (0)
Please sign in to comment.