mirror of https://github.com/jumpserver/jumpserver
fix: (smart endpoint 切换到全局组织下匹配)
parent
953adf6cfb
commit
2a964bfa6c
|
@ -24,6 +24,7 @@ class SmartEndpointViewMixin:
|
|||
target_protocol: None
|
||||
|
||||
@action(methods=['get'], detail=False, permission_classes=[IsValidUserOrConnectionToken])
|
||||
@tmp_to_root_org()
|
||||
def smart(self, request, *args, **kwargs):
|
||||
self.target_instance = self.get_target_instance()
|
||||
self.target_protocol = self.get_target_protocol()
|
||||
|
|
Loading…
Reference in New Issue