Skip to content

Commit

Permalink
Fix incorrect access checks for updating and deleting categories
Browse files Browse the repository at this point in the history
Fixes #11873: [patch] Add and delete category of a specific project using SOAP API
  • Loading branch information
rombert committed May 12, 2010
1 parent 731eaf0 commit 8277d96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/soap/mc_project_api.php
Expand Up @@ -151,7 +151,7 @@ function mc_project_delete_category ($p_username, $p_password, $p_project_id, $p
return new soap_fault( 'Client', '', "Project '$p_project_id' does not exist." );
}

if( !mci_has_access( config_get( 'manage_project_threshold' ), $p_project_id ) ) {
if( !mci_has_access( config_get( 'manage_project_threshold' ), $t_user_id, $p_project_id ) ) {
return new soap_fault( 'Client', '', 'Access Denied' );
}

Expand Down Expand Up @@ -188,7 +188,7 @@ function mc_project_rename_category_by_name ($p_username, $p_password, $p_projec
return new soap_fault( 'Client', '', "Project '$p_project_id' does not exist." );
}

if( !mci_has_access( config_get( 'manage_project_threshold' ), $p_project_id ) ) {
if( !mci_has_access( config_get( 'manage_project_threshold' ), $t_user_id, $p_project_id ) ) {
return new soap_fault( 'Client', '', 'Access Denied' );
}

Expand Down

0 comments on commit 8277d96

Please sign in to comment.