From 3924ff01141b4ea8a36b7887ce3e1ce9219922bb Mon Sep 17 00:00:00 2001 From: "Jiangjie.Bai" Date: Tue, 15 Mar 2022 11:33:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E5=BD=95=E5=83=8F=E6=9D=83=E9=99=90=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/rbac/const.py | 2 +- apps/terminal/api/session.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/rbac/const.py b/apps/rbac/const.py index b5cd77f0a..88adf1199 100644 --- a/apps/rbac/const.py +++ b/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'), ) diff --git a/apps/terminal/api/session.py b/apps/terminal/api/session.py index 334a19cf4..949ac8d09 100644 --- a/apps/terminal/api/session.py +++ b/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):