added customer authority for the firmware info methods
This commit is contained in:
parent
a5656009d2
commit
7e39a19531
@ -73,7 +73,7 @@ public class FirmwareController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAnyAuthority('TENANT_ADMIN')")
|
||||
@PreAuthorize("hasAnyAuthority('TENANT_ADMIN', 'CUSTOMER_USER')")
|
||||
@RequestMapping(value = "/firmware/info/{firmwareId}", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
public FirmwareInfo getFirmwareInfoById(@PathVariable(FIRMWARE_ID) String strFirmwareId) throws ThingsboardException {
|
||||
@ -158,7 +158,7 @@ public class FirmwareController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAnyAuthority('TENANT_ADMIN')")
|
||||
@PreAuthorize("hasAnyAuthority('TENANT_ADMIN', 'CUSTOMER_USER')")
|
||||
@RequestMapping(value = "/firmwares", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
public PageData<FirmwareInfo> getFirmwares(@RequestParam int pageSize,
|
||||
@ -174,7 +174,7 @@ public class FirmwareController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
@PreAuthorize("hasAnyAuthority('TENANT_ADMIN')")
|
||||
@PreAuthorize("hasAnyAuthority('TENANT_ADMIN', 'CUSTOMER_USER')")
|
||||
@RequestMapping(value = "/firmwares/{hasData}", method = RequestMethod.GET)
|
||||
@ResponseBody
|
||||
public PageData<FirmwareInfo> getFirmwares(@PathVariable("hasData") boolean hasData,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user