mirror of https://github.com/jumpserver/jumpserver
fix: 修改查看会话录像权限位
parent
6a0264ad3b
commit
3924ff0114
|
@ -78,7 +78,7 @@ exclude_permissions = (
|
|||
('terminal', 'command', 'delete,change', 'command'),
|
||||
('terminal', 'status', 'delete,change', 'status'),
|
||||
('terminal', 'sessionjoinrecord', 'delete', 'sessionjoinrecord'),
|
||||
('terminal', 'sessionreplay', 'delete', 'sessionreplay'),
|
||||
('terminal', 'sessionreplay', 'add,change,delete', 'sessionreplay'),
|
||||
('terminal', 'session', 'delete', 'session'),
|
||||
('terminal', 'session', 'delete,change', 'command'),
|
||||
)
|
||||
|
|
|
@ -126,7 +126,7 @@ class SessionReplayViewSet(AsyncApiMixin, viewsets.ViewSet):
|
|||
session = None
|
||||
rbac_perms = {
|
||||
'create': 'terminal.upload_sessionreplay',
|
||||
'retrieve': 'terminal.download_sessionreplay',
|
||||
'retrieve': 'terminal.view_sessionreplay',
|
||||
}
|
||||
|
||||
def create(self, request, *args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue