fix: wrong shared condition
This commit is contained in:
parent
b2442a03c4
commit
100db9a6ca
1 changed files with 7 additions and 7 deletions
|
|
@ -144,6 +144,12 @@ export class ProductController extends Controller {
|
|||
? {
|
||||
OR: [
|
||||
{ productGroupId },
|
||||
{
|
||||
shared: true,
|
||||
productGroup: {
|
||||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||
},
|
||||
},
|
||||
{
|
||||
productGroup: {
|
||||
shared: true,
|
||||
|
|
@ -159,14 +165,8 @@ export class ProductController extends Controller {
|
|||
? []
|
||||
: [
|
||||
{
|
||||
shared: true,
|
||||
productGroup: {
|
||||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||
},
|
||||
},
|
||||
{
|
||||
productGroup: {
|
||||
shared: true,
|
||||
id: productGroupId,
|
||||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue