Commit ea22fd8d authored by Antoine Millet's avatar Antoine Millet

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

parent a319e58f
......@@ -235,8 +235,12 @@ class ObjectsDB(object):
parent = obj.get('__parent')
if parent is None:
user_tags = self._server.conf.show(obj['id'])['tags']
obj['__user_defined_tags'] = user_tags
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']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment