Commit bd8918866636014f813772a7c7feb967434d2ec9

Authored by xp.Huang
1 parent 657f5d12

perf: 调整gbt28181视频点播权限

@@ -36,8 +36,8 @@ public class TkVideoControlController extends BaseController { @@ -36,8 +36,8 @@ public class TkVideoControlController extends BaseController {
36 36
37 @GetMapping("/start/{deviceId}/{channelId}") 37 @GetMapping("/start/{deviceId}/{channelId}")
38 @ApiOperation(value = "视频点播/预览") 38 @ApiOperation(value = "视频点播/预览")
39 - @PreAuthorize(  
40 - "@check.checkPermissions({'SYS_ADMIN','PLATFORM_ADMIN','TENANT_ADMIN','CUSTOMER_USER'},{'api:yt:video:control:play'})") 39 +// @PreAuthorize("@check.checkPermissions({'SYS_ADMIN','PLATFORM_ADMIN','TENANT_ADMIN','CUSTOMER_USER'},{'api:yt:video:control:play'})")
  40 + @PreAuthorize("hasAnyAuthority('SYS_ADMIN','PLATFORM_ADMIN','TENANT_ADMIN','CUSTOMER_USER')")
41 public DeferredResult<ResponseResult<StreamContentDTO>> startPlay( 41 public DeferredResult<ResponseResult<StreamContentDTO>> startPlay(
42 @PathVariable("deviceId") String tbDeviceId, @PathVariable("channelId") String channelId) 42 @PathVariable("deviceId") String tbDeviceId, @PathVariable("channelId") String channelId)
43 throws ThingsboardException { 43 throws ThingsboardException {