From b32d4ed2dbc74038b0dcdbebaa4c51a05dc2b263 Mon Sep 17 00:00:00 2001 From: Carlos Proensa Date: Tue, 9 Nov 2010 11:55:52 +0100 Subject: [PATCH] fix 0012443: allows to move a bug into a project with viewer access level adds a check for reporter_access_level for destination project --- bug_actiongroup.php | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bug_actiongroup.php b/bug_actiongroup.php index 7d72793..1f87db6 100644 --- a/bug_actiongroup.php +++ b/bug_actiongroup.php @@ -98,9 +98,10 @@ break; case 'MOVE': - if ( access_has_bug_level( config_get( 'move_bug_threshold' ), $t_bug_id ) ) { + $f_project_id = gpc_get_int( 'project_id' ); + if ( access_has_bug_level( config_get( 'move_bug_threshold' ), $t_bug_id ) + && access_has_project_level( config_get( 'report_bug_threshold' ), $f_project_id ) ) { /** @todo we need to issue a helper_call_custom_function( 'issue_update_validate', array( $t_bug_id, $t_bug_data, $f_bugnote_text ) ); */ - $f_project_id = gpc_get_int( 'project_id' ); bug_set_field( $t_bug_id, 'project_id', $f_project_id ); helper_call_custom_function( 'issue_update_notify', array( $t_bug_id ) ); } else { -- 1.7.1