Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve, reject) => {
const shareOptions: portal.IGroupSharingOptions = {
groupId,
id,
authentication: destinationAuthentication
};
portal.shareItemWithGroup(shareOptions).then(
(shareResponse: any) => {
resolve();
},
(e: any) => reject(generalHelpers.fail(e))
);
});
}
shareWithGroup (owner, itemId, groupId, confirmItemControl = false, portalOpts) {
const args = this.addOptions({
id: itemId,
owner,
groupId,
confirmItemControl
}, portalOpts);
return shareItemWithGroup(args)
.catch(handleError);
},
/**