From 5afe3be91121223d89f4db2df43553ce1082641d Mon Sep 17 00:00:00 2001 From: Dave Bouwman Date: Thu, 27 Feb 2020 14:42:59 -0700 Subject: [PATCH] docs(portal): fix comment in code fix comment AFFECTS PACKAGES: @esri/arcgis-rest-portal --- packages/arcgis-rest-portal/src/sharing/group-sharing.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/arcgis-rest-portal/src/sharing/group-sharing.ts b/packages/arcgis-rest-portal/src/sharing/group-sharing.ts index a40219e984..405babb7be 100644 --- a/packages/arcgis-rest-portal/src/sharing/group-sharing.ts +++ b/packages/arcgis-rest-portal/src/sharing/group-sharing.ts @@ -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