fix: wrong condition
This commit is contained in:
parent
1385e37f8f
commit
5049392caf
1 changed files with 2 additions and 2 deletions
|
|
@ -306,8 +306,8 @@ export class EmployeeController extends Controller {
|
||||||
OR: [
|
OR: [
|
||||||
{ user: { some: { userId: req.user.sub } } },
|
{ user: { some: { userId: req.user.sub } } },
|
||||||
{
|
{
|
||||||
headOffice: !globalAllow(req.user)
|
branch: globalAllow(req.user)
|
||||||
? { user: { some: { userId: req.user.sub } } }
|
? { some: { user: { some: { userId: req.user.sub } } } }
|
||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue