mirror of https://github.com/jumpserver/jumpserver
fix: 修改上传录像 api 权限
parent
e3b620089a
commit
add4d8d2cd
|
@ -164,8 +164,8 @@ class SessionReplayViewSet(AsyncApiMixin, viewsets.ViewSet):
|
||||||
download_cache_key = "SESSION_REPLAY_DOWNLOAD_{}"
|
download_cache_key = "SESSION_REPLAY_DOWNLOAD_{}"
|
||||||
session = None
|
session = None
|
||||||
rbac_perms = {
|
rbac_perms = {
|
||||||
'create': 'terminal.upload_session',
|
'create': 'terminal.upload_sessionreplay',
|
||||||
'retrieve': 'terminal.download_session',
|
'retrieve': 'terminal.download_sessionreplay',
|
||||||
}
|
}
|
||||||
|
|
||||||
def create(self, request, *args, **kwargs):
|
def create(self, request, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in New Issue