Permalink
Browse files

Fix #13528 : SOAP API accesses undefined variable in error handling

  • Loading branch information...
1 parent 8c78051 commit b272eaad5940006c62df254d58341cedf12df014 @atrol atrol committed Nov 11, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 api/soap/mc_file_api.php
@@ -192,16 +192,16 @@ function mci_file_get( $p_file_id, $p_type, $p_user_id ) {
switch( $p_type ) {
case 'bug':
if( !mci_file_can_download_bug_attachments( $t_bug_id, $p_user_id ) ) {
- return mci_soap_fault_access_denied( $t_user_id );
+ return mci_soap_fault_access_denied( $p_user_id );
}
break;
case 'doc':
# Check if project documentation feature is enabled.
if( OFF == config_get( 'enable_project_documentation' ) ) {
- return mci_soap_fault_access_denied( $t_user_id );
+ return mci_soap_fault_access_denied( $p_user_id );
}
if( !access_has_project_level( config_get( 'view_proj_doc_threshold' ), $t_project_id, $p_user_id ) ) {
- return mci_soap_fault_access_denied( $t_user_id );
+ return mci_soap_fault_access_denied( $p_user_id );
}
break;
}

0 comments on commit b272eaa

Please sign in to comment.