Skip to content

Commit

Permalink
docs(portal): fix comment in code
Browse files Browse the repository at this point in the history
fix comment

AFFECTS PACKAGES:
@esri/arcgis-rest-portal
  • Loading branch information
dbouwman committed Feb 27, 2020
1 parent 1756cc4 commit 5afe3be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/arcgis-rest-portal/src/sharing/group-sharing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ function changeGroupSharing(
// ...they are some level of membership or org-admin
// if the current user does not own the item...
if (itemOwner !== username) {
// only item owners or org_admins can share/unshare items w/ shared editing groups
// only item owners can share/unshare items w/ shared editing groups
if (isSharedEditingGroup) {
throw Error(
`This item can not be ${requestOptions.action}d to shared editing group ${requestOptions.groupId} by ${username} as they not the item owner.`
);
}
// only item-owners, group-admin's, group-owners or org_admin's can unshare an item from a group
// only item-owners, group-admin's, group-owners can unshare an item from a group
if (
requestOptions.action === "unshare" &&
membership !== "admin" && // not group admin
Expand Down

0 comments on commit 5afe3be

Please sign in to comment.