feat: add share-with opt in templates as well as restrict non-team user

This commit is contained in:
prafull-opensignlabs
2024-07-03 18:01:51 +05:30
parent a246f74e11
commit 57b23d7f97
14 changed files with 814 additions and 565 deletions
@@ -42,10 +42,10 @@ export default async function getReport(request) {
$or: [
{ SharedWith: { $in: departmentArr } },
{
CreatedBy: {
ExtUserPtr: {
__type: 'Pointer',
className: '_User',
objectId: userId,
className: 'contracts_Users',
objectId: extUser.id,
},
},
],