mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
fix: 终端删除后,录像存储不能删除问题
This commit is contained in:
@@ -164,4 +164,4 @@ class ReplayStorage(CommonStorageModelMixin, CommonModelMixin):
|
||||
return storage.is_valid(src, target)
|
||||
|
||||
def is_use(self):
|
||||
return Terminal.objects.filter(replay_storage=self.name).exists()
|
||||
return Terminal.objects.filter(replay_storage=self.name, is_deleted=False).exists()
|
||||
|
Reference in New Issue
Block a user