Skip to content

Commit

Permalink
SOAP API: ensure that the user has a proper access level
Browse files Browse the repository at this point in the history
Fixes #12517: Users can view private bugs

Signed-off-by: Robert Munteanu <robert.munteanu@gmail.com>
  • Loading branch information
Markus Schneider authored and rombert committed Feb 7, 2011
1 parent d8d14a6 commit bde76f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/soap/mc_issue_api.php
Expand Up @@ -61,6 +61,10 @@ function mc_issue_get( $p_username, $p_password, $p_issue_id ) {
return mci_soap_fault_access_denied( $t_user_id );
}

if( !access_has_bug_level( VIEWER, $p_issue_id, $t_user_id ) ){
return mci_soap_fault_access_denied( $t_user_id );
}

$t_bug = bug_get( $p_issue_id, true );
$t_issue_data = array();

Expand Down

0 comments on commit bde76f1

Please sign in to comment.