mirror of
https://github.com/veops/cmdb.git
synced 2025-08-06 23:34:27 +08:00
docker-compose is ok
This commit is contained in:
@@ -95,7 +95,7 @@ class Search(object):
|
||||
for _v in new_v:
|
||||
ci_type = CITypeCache.get(_v)
|
||||
|
||||
if len(new_v) == 1 and not self.sort and ci_type.default_order_attr:
|
||||
if len(new_v) == 1 and not self.sort and ci_type and ci_type.default_order_attr:
|
||||
self.sort = ci_type.default_order_attr
|
||||
|
||||
if ci_type is not None:
|
||||
|
@@ -41,7 +41,7 @@ class ACLManager(object):
|
||||
def get_all_roles(self):
|
||||
numfound, roles = RoleCRUD.search(
|
||||
None, self.app_name, 1, 999999, True, True, False)
|
||||
return roles
|
||||
return [i.to_dict() for i in roles]
|
||||
|
||||
def remove_user_from_role(self, user_rid, payload):
|
||||
app_id = self.app_name
|
||||
|
Reference in New Issue
Block a user