mirror of
https://github.com/veops/cmdb.git
synced 2025-08-09 03:47:51 +08:00
Dev api 240328 (#445)
* feat(api): login api supports parameter auth_with_ldap * fix(api): transfer attribute
This commit is contained in:
@@ -66,7 +66,7 @@ class Search(object):
|
||||
self.has_m2m = True
|
||||
|
||||
self.type2filter_perms = None
|
||||
|
||||
|
||||
self.is_app_admin = is_app_admin('cmdb') or current_user.username == "worker"
|
||||
|
||||
def _get_ids(self, ids):
|
||||
@@ -320,7 +320,8 @@ class Search(object):
|
||||
else:
|
||||
__tmp = []
|
||||
|
||||
_tmp[idx] = [j for i in __tmp for j in i]
|
||||
if __tmp:
|
||||
_tmp[idx] = [j for i in __tmp for j in i]
|
||||
else:
|
||||
_tmp[idx] = []
|
||||
level2ids[lv].append([])
|
||||
|
Reference in New Issue
Block a user