fix: 修改上传录像 api 权限

pull/7687/head
ibuler 2022-02-23 15:47:12 +08:00
parent e3b620089a
commit add4d8d2cd
1 changed files with 2 additions and 2 deletions

View File

@ -164,8 +164,8 @@ class SessionReplayViewSet(AsyncApiMixin, viewsets.ViewSet):
download_cache_key = "SESSION_REPLAY_DOWNLOAD_{}"
session = None
rbac_perms = {
'create': 'terminal.upload_session',
'retrieve': 'terminal.download_session',
'create': 'terminal.upload_sessionreplay',
'retrieve': 'terminal.download_sessionreplay',
}
def create(self, request, *args, **kwargs):