fix: user in branch not see hq
This commit is contained in:
parent
45e545da08
commit
cab6ba4d04
1 changed files with 2 additions and 2 deletions
|
|
@ -222,8 +222,8 @@ export class BranchController extends Controller {
|
|||
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