From e081a1629f33e3af172101b94977f281879539c9 Mon Sep 17 00:00:00 2001 From: Justin Date: Tue, 7 Aug 2018 18:28:03 -0400 Subject: [PATCH] fix(api): Updating project members all function to include the inherited members. #141 --- src/templates/ResourceMembers.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/templates/ResourceMembers.js b/src/templates/ResourceMembers.js index 2b2ca6a55..4f1635b4c 100644 --- a/src/templates/ResourceMembers.js +++ b/src/templates/ResourceMembers.js @@ -8,10 +8,12 @@ class ResourceMembers extends BaseService { this.url = URLJoin(this.url, resourceType); } - all(resourceId) { + all(resourceId, { excludeInherited = false, query } = {}) { const rId = encodeURIComponent(resourceId); - return RequestHelper.get(this, `${rId}/members`); + const url = excludeInherited ? `${rId}/members` : `${rId}/members/all`; + + return RequestHelper.get(this, url, { query }); } add(resourceId, userId, accessLevel, options) {