فهرست منبع

feature:删除地区权限

ZZH-wl 1 سال پیش
والد
کامیت
8588ac0197
1فایلهای تغییر یافته به همراه7 افزوده شده و 6 حذف شده
  1. 7 6
      opms_admin/app/service/sys_user_datascope.go

+ 7 - 6
opms_admin/app/service/sys_user_datascope.go

@@ -144,11 +144,11 @@ func (s *UserService) GetDataScope(userInfo *request.UserInfo) (dataScope g.Map,
 	}
 
 	// 地区数据权限
-	regionSrv, _ := NewRegionService(s.Ctx)
-	regionList, err := regionSrv.getCurrentUserRegionAuth(userId)
-	if err != nil {
-		return nil, err
-	}
+	//regionSrv, _ := NewRegionService(s.Ctx)
+	//regionList, err := regionSrv.getCurrentUserRegionAuth(userId)
+	//if err != nil {
+	//	return nil, err
+	//}
 
 	// 获取角色
 	roles, err := s.GetMaxRoleDataScopeByUser(userId)
@@ -206,7 +206,8 @@ func (s *UserService) GetDataScope(userInfo *request.UserInfo) (dataScope g.Map,
 	if userIdArr.Size() == 0 {
 		userIdArr.Add(userId)
 	}
-	dataScope = g.Map{"userIds": userIdArr.Slice(), "cust_city_id": regionList, "product_line": productLineList}
+	//dataScope = g.Map{"userIds": userIdArr.Slice(), "cust_city_id": regionList, "product_line": productLineList}
+	dataScope = g.Map{"userIds": userIdArr.Slice(), "product_line": productLineList}
 	if isBigProject != "" {
 		dataScope["is_big"] = isBigProject
 	}