Commit ea22fd8d authored by Antoine Millet's avatar Antoine Millet
Browse files

Objectdb now fetch used defined tags only if object is attached to an account.

parent a319e58f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -235,8 +235,12 @@ class ObjectsDB(object):
        parent = obj.get('__parent')

        if parent is None:
            if 'a' in obj:
                user_tags = self._server.conf.show(obj['id'])['tags']
                obj['__user_defined_tags'] = user_tags
            else:
                user_tags = {}
                obj['__user_defined_tags'] = {}
            client_id = obj['id']
        else:
            user_tags = parent['__user_defined_tags']