Skip to content

Commit 75568c5

Browse files
committedJun 3, 2012
Additional patch to fix #14016
First patch to fix the issue introduced access to undefined variable.
1 parent 31d1156 commit 75568c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎api/soap/mc_issue_attachment_api.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function mc_issue_attachment_delete( $p_username, $p_password, $p_issue_attachme
7272
$t_bug_id = file_get_field( $p_issue_attachment_id, 'bug_id' );
7373

7474
# Perform access control checks
75-
$t_attachment_owner = file_get_field( $f_file_id, 'user_id' );
75+
$t_attachment_owner = file_get_field( $p_issue_attachment_id, 'user_id' );
7676
$t_current_user_is_attachment_owner = $t_attachment_owner == $t_user_id;
7777
# Factor in allow_delete_own_attachments=ON|OFF
7878
if ( !$t_current_user_is_attachment_owner || ( $t_current_user_is_attachment_owner && !config_get( 'allow_delete_own_attachments' ) ) ) {

0 commit comments

Comments
 (0)
Please sign in to comment.