mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-25 22:42:05 +00:00
fix: 修改上传录像 api 权限
This commit is contained in:
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
Block a user