Procházet zdrojové kódy

后:角色管理部门树不全

dubch před 5 roky
rodič
revize
8e9adcbdee

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

@@ -135,7 +135,7 @@ func (this *RoleController) OrgAllList() {
 		unitId := svc.GetMyUnitDepartmentId(this.User.DepartmentId)
 		ids = svc.GetAllChildById(unitId)
 	}
-	where := " Id in ( " + ids + " )"
+	where := "( Createuserid=" + this.User.Id + " or Id in (" + ids + "))"
 
 	list := make([]commonorgnize.Base_Organize, 0)
 	svc.GetEntities(&list, where)