feat: add option to share product inside one group
This commit is contained in:
parent
b9ec4eadc7
commit
a7edde9e5d
2 changed files with 8 additions and 0 deletions
|
|
@ -105,6 +105,12 @@ export class ProductController extends Controller {
|
|||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||
},
|
||||
},
|
||||
{
|
||||
productGroup: {
|
||||
shared: true,
|
||||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue