Skip to content

Commit

Permalink
Accounting for update group owner
Browse files Browse the repository at this point in the history
  • Loading branch information
drewdaemon committed Mar 16, 2020
1 parent 0c068fc commit 84a7d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/arcgis-rest-portal/src/sharing/group-sharing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function shareToGroupAsNonOwner(
if (group) {
// they are in the group...
// check member type
if (group.userMembership.memberType !== "admin") {
if (group.userMembership.memberType === "member") {
// promote them
return updateUserMemberships({
id: requestOptions.groupId,
Expand Down

0 comments on commit 84a7d41

Please sign in to comment.