feat(api): topology view (#523)

* feat(api): topology views crud

* feat(api): topology view

* feat(api): topology view api done

* feat(api): topology view is done
This commit is contained in:
pycook
2024-05-28 17:50:09 +08:00
committed by GitHub
parent e727391fed
commit d276b3122e
12 changed files with 554 additions and 22 deletions

View File

@@ -70,6 +70,7 @@ class Search(object):
self.valid_type_names = []
self.type2filter_perms = dict()
self.is_app_admin = is_app_admin('cmdb') or current_user.username == "worker"
self.is_app_admin = self.is_app_admin or (not self.use_ci_filter and not self.use_id_filter)
@staticmethod
def _operator_proc(key):