Skip to content

Commit

Permalink
fix(api): Updating project members all function to include the inheri…
Browse files Browse the repository at this point in the history
…ted members. #141
  • Loading branch information
jdalrymple committed Aug 7, 2018
1 parent a126eff commit e081a16
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/templates/ResourceMembers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e081a16

Please sign in to comment.