fix: tree permission
This commit is contained in:
parent
8f60197082
commit
5e33da1862
1 changed files with 1 additions and 0 deletions
|
|
@ -278,6 +278,7 @@ export class BranchController extends Controller {
|
||||||
branch: tree
|
branch: tree
|
||||||
? {
|
? {
|
||||||
where: {
|
where: {
|
||||||
|
AND: { OR: permissionCond(req.user, true) },
|
||||||
OR: [
|
OR: [
|
||||||
{ nameEN: { contains: query } },
|
{ nameEN: { contains: query } },
|
||||||
{ name: { contains: query } },
|
{ name: { contains: query } },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue