소스 검색

初审 复审 选人

lining 6 년 전
부모
커밋
2d89430d46
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/dashoo.cn/backend/api/controllers/casbin/organize.go

+ 2 - 1
src/dashoo.cn/backend/api/controllers/casbin/organize.go

@@ -428,7 +428,8 @@ func (this *OrganizesController) OrgAllList() {
 
 	var user userRole.Base_User
 	svc.GetEntityById(this.User.Id, &user)
-	ids := svc.GetAllChildById("0")
+	unitId := svc.GetMyUnitDepartmentId(this.User.DepartmentId)
+	ids := svc.GetAllChildById(unitId)
 	where := " Id in ( " + ids + " )"
 
 	list := make([]organize.Base_Organize, 0)