Commit 40529a58fadad7bab2974fd7ad0add03353dfb9e

Authored by 云中非
1 parent caffb0b0

fix(DEFECT-306): 客户没有权限获取遥测数据指标

@@ -138,7 +138,7 @@ public class DeviceProfileController extends BaseController { @@ -138,7 +138,7 @@ public class DeviceProfileController extends BaseController {
138 "The implementation limits the number of devices that participate in search to 100 as a trade of between accurate results and time-consuming queries. " + 138 "The implementation limits the number of devices that participate in search to 100 as a trade of between accurate results and time-consuming queries. " +
139 TENANT_AUTHORITY_PARAGRAPH, 139 TENANT_AUTHORITY_PARAGRAPH,
140 produces = "application/json") 140 produces = "application/json")
141 - @PreAuthorize("hasAnyAuthority('TENANT_ADMIN')") 141 + @PreAuthorize("hasAnyAuthority('TENANT_ADMIN', 'CUSTOMER_USER')")
142 @RequestMapping(value = "/deviceProfile/devices/keys/timeseries", method = RequestMethod.GET) 142 @RequestMapping(value = "/deviceProfile/devices/keys/timeseries", method = RequestMethod.GET)
143 @ResponseBody 143 @ResponseBody
144 public List<String> getTimeseriesKeys( 144 public List<String> getTimeseriesKeys(