Skip to content

Commit

Permalink
REST: users/me shouldn’t return disabled projects
Browse files Browse the repository at this point in the history
When returning the list of projects the user has access to, don’t include disabled ones.
  • Loading branch information
vboctor committed Apr 28, 2017
1 parent 9c42462 commit f48898d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/soap/mc_api.php
Expand Up @@ -263,7 +263,7 @@ function mci_user_get( $p_username, $p_password, $p_user_id ) {
'name' => MantisEnum::getLabel( config_get( 'access_levels_enum_string' ), $t_access_level ),
);

$t_project_ids = user_get_accessible_projects( $p_user_id, /* disabled */ true );
$t_project_ids = user_get_accessible_projects( $p_user_id, /* disabled */ false );
$t_projects = array();
foreach( $t_project_ids as $t_project_id ) {
$t_projects[] = mci_project_get( $t_project_id );
Expand Down

0 comments on commit f48898d

Please sign in to comment.