mirror of
https://github.com/OpenSignLabs/OpenSign.git
synced 2026-08-22 15:42:31 +02:00
feat: add share-with opt in templates as well as restrict non-team user
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user