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: [
|
OR: [
|
||||||
{ productGroupId },
|
{ productGroupId },
|
||||||
|
{
|
||||||
|
shared: true,
|
||||||
|
productGroup: {
|
||||||
|
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
productGroup: {
|
productGroup: {
|
||||||
shared: true,
|
shared: true,
|
||||||
|
|
@ -159,14 +165,8 @@ export class ProductController extends Controller {
|
||||||
? []
|
? []
|
||||||
: [
|
: [
|
||||||
{
|
{
|
||||||
shared: true,
|
|
||||||
productGroup: {
|
productGroup: {
|
||||||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
id: productGroupId,
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
productGroup: {
|
|
||||||
shared: true,
|
|
||||||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue