fix: tree permission

This commit is contained in:
Methapon Metanipat 2024-09-24 11:43:16 +07:00
parent 8f60197082
commit 5e33da1862

View file

@ -278,6 +278,7 @@ export class BranchController extends Controller {
branch: tree
? {
where: {
AND: { OR: permissionCond(req.user, true) },
OR: [
{ nameEN: { contains: query } },
{ name: { contains: query } },