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: [
|
||||
{ user: { some: { userId: req.user.sub } } },
|
||||
{
|
||||
headOffice: !globalAllow(req.user)
|
||||
? { user: { some: { userId: req.user.sub } } }
|
||||
branch: globalAllow(req.user)
|
||||
? { some: { user: { some: { userId: req.user.sub } } } }
|
||||
: undefined,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue