Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 56aee3c

Browse files
authored
Merge pull request #540 from appirio-tech/feature/bad_request_group_api_issue#539
Fixing bad request with groups api call
2 parents 6d23464 + ed1e439 commit 56aee3c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ workflows:
9090
context : org-global
9191
filters:
9292
branches:
93-
only: [dev, dev-sts, 'feature/serialization_error_for_ProjectGroup']
93+
only: [dev, dev-sts, 'feature/bad_request_group_api_issue#539']
94+
9495
- build-qa:
9596
context : org-global
9697
filters:

src/java/main/com/topcoder/direct/services/view/util/DirectUtils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3876,6 +3876,7 @@ public static Set<Map<String, String>> getGroupsFromApi(TCSubject tcSubject, Str
38763876

38773877
if (!DirectUtils.isCockpitAdmin(tcSubject) && !DirectUtils.isTcStaff(tcSubject)) {
38783878
uri.setParameter("memberId", String.valueOf(tcSubject.getUserId()));
3879+
uri.setParameter("membershipType", "user");
38793880
}
38803881

38813882
uri.setParameter(PER_PAGE, PER_PAGE_VALUE);

0 commit comments

Comments
 (0)