fix: 修复存储测试权限位

pull/7863/head
Jiangjie.Bai 3 years ago committed by Jiangjie.Bai
parent c4280d259a
commit 172b492bc3

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c46cf13d1d3dfe5193590605f8f0e6b552334bcb1ebef1d9ddb31ed32f88ea93
size 104181
oid sha256:fd3477eb43ff2155687120215926bb5a80a9cbd13a74c84b08e6078dcba016a2
size 104274

@ -131,7 +131,13 @@ class BaseStorageTestConnectiveMixin:
class CommandStorageTestConnectiveApi(BaseStorageTestConnectiveMixin, generics.RetrieveAPIView):
queryset = CommandStorage.objects.all()
rbac_perms = {
'retrieve': 'terminal.view_commandstorage'
}
class ReplayStorageTestConnectiveApi(BaseStorageTestConnectiveMixin, generics.RetrieveAPIView):
queryset = ReplayStorage.objects.all()
rbac_perms = {
'retrieve': 'terminal.view_replaystorage'
}

Loading…
Cancel
Save