Skip to content

Commit

Permalink
Additional patch to fix #14016
Browse files Browse the repository at this point in the history
First patch to fix the issue introduced access to undefined variable.
  • Loading branch information
atrol committed Jun 3, 2012
1 parent 31d1156 commit 75568c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/soap/mc_issue_attachment_api.php
Expand Up @@ -72,7 +72,7 @@ function mc_issue_attachment_delete( $p_username, $p_password, $p_issue_attachme
$t_bug_id = file_get_field( $p_issue_attachment_id, 'bug_id' );

# Perform access control checks
$t_attachment_owner = file_get_field( $f_file_id, 'user_id' );
$t_attachment_owner = file_get_field( $p_issue_attachment_id, 'user_id' );
$t_current_user_is_attachment_owner = $t_attachment_owner == $t_user_id;
# Factor in allow_delete_own_attachments=ON|OFF
if ( !$t_current_user_is_attachment_owner || ( $t_current_user_is_attachment_owner && !config_get( 'allow_delete_own_attachments' ) ) ) {
Expand Down

0 comments on commit 75568c5

Please sign in to comment.