I am trying to use the Mantis API and i have a problem with mc_issue_add.
If i use this function with an user who is "reporter" or "updater" on this project, the issue is created.
If i use this function with an user who is "developer", "manager" or "administrator" on this project, the function fails with this error :
Code: Select all
Fatal error: Uncaught SoapFault exception: [Server] Error Type: APPLICATION ERROR #13, Error Description: Access Denied., Stack Trace: bug_api.php L168 trigger_error(<string>'13', <integer>256) mc_issue_api.php L633 __set(<string>'target_version', <string>'') UnknownFile L? mc_issue_add(<string>'...', <string>'...', <Array> { ['project'] => <Array> { ['id'] => 1 }, ...
The problem seems to be here (in mc_issue_api.php) :
Code: Select all
if( access_has_project_level( config_get( 'roadmap_update_threshold' ), $t_bug_data->project_id, $t_user_id ) ) {
$t_bug_data->target_version = isset( $p_issue['target_version'] ) ? $p_issue['target_version'] : '';
}
How can i resolve my problem (instead of commented source code) ?