mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-08 02:39:22 +00:00
fix: 修改会话共享可以指定用户的一些问题
This commit is contained in:
committed by
Jiangjie.Bai
parent
9465138faf
commit
8e65975cd7
@@ -24,7 +24,7 @@ class BaseStorageViewSetMixin:
|
||||
|
||||
def destroy(self, request, *args, **kwargs):
|
||||
instance = self.get_object()
|
||||
if instance.type_null_or_server:
|
||||
if instance.type_null_or_server or instance.is_default:
|
||||
data = {'msg': _('Deleting the default storage is not allowed')}
|
||||
return Response(data=data, status=status.HTTP_400_BAD_REQUEST)
|
||||
if instance.is_use():
|
||||
|
Reference in New Issue
Block a user