fix: 修复存储测试权限位

This commit is contained in:
Jiangjie.Bai
2022-03-15 19:35:32 +08:00
committed by Jiangjie.Bai
parent c4280d259a
commit 172b492bc3
2 changed files with 8 additions and 2 deletions

View File

@@ -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'
}