fix: (smart endpoint 切换到全局组织下匹配)

pull/9466/head
Bai 2023-02-08 14:27:37 +08:00 committed by Jiangjie.Bai
parent 953adf6cfb
commit 2a964bfa6c
1 changed files with 1 additions and 0 deletions

View File

@ -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()