From f48898d8ff18f51bb30011dbd72fd2235c598d8f Mon Sep 17 00:00:00 2001 From: Victor Boctor Date: Thu, 27 Apr 2017 18:25:57 -0700 Subject: [PATCH] =?UTF-8?q?REST:=20users/me=20shouldn=E2=80=99t=20return?= =?UTF-8?q?=20disabled=20projects?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When returning the list of projects the user has access to, don’t include disabled ones. --- api/soap/mc_api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/soap/mc_api.php b/api/soap/mc_api.php index 1e91d544f5..599c442eea 100644 --- a/api/soap/mc_api.php +++ b/api/soap/mc_api.php @@ -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 );