Browse Source

fix: 修改查看会话录像权限位

pull/7844/head
Jiangjie.Bai 3 years ago committed by Jiangjie.Bai
parent
commit
3924ff0114
  1. 2
      apps/rbac/const.py
  2. 2
      apps/terminal/api/session.py

2
apps/rbac/const.py

@ -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'),
)

2
apps/terminal/api/session.py

@ -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…
Cancel
Save