Skip to content

Commit

Permalink
feat: Re-add list all project members endpoint (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-wittig authored and jdalrymple committed Sep 18, 2018
1 parent 653ab04 commit 5b07b6a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/templates/ResourceMembers.ts
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, includeInherited = false, options = {}) {
const rId = encodeURIComponent(resourceId);

return RequestHelper.get(this, `${rId}/members`);
const url = includeInherited ? `${rId}/members/all` : `${rId}/members`;

return RequestHelper.get(this, url, { options });
}

add(resourceId, userId, accessLevel, options) {
Expand Down

0 comments on commit 5b07b6a

Please sign in to comment.