changeset 2508:4e5cc45e2be7

core (memory): fixed _getParentDir call in setFile
author Goffi <goffi@goffi.org>
date Fri, 02 Mar 2018 17:37:41 +0100
parents 4c45df43ea44
children d485e9416493
files src/memory/memory.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/memory/memory.py	Fri Mar 02 17:36:43 2018 +0100
+++ b/src/memory/memory.py	Fri Mar 02 17:37:41 2018 +0100
@@ -1281,7 +1281,7 @@
             if peer_jid is None:
                 peer_jid = owner
             # _getParentDir will check permissions if peer_jid is set
-            parent, remaining_path_elts = self._getParentDir(client, path, parent, namespace, owner, owner, perms_to_check)
+            parent, remaining_path_elts = yield self._getParentDir(client, path, parent, namespace, owner, owner, perms_to_check)
             # if remaining directories don't exist, we have to create them
             for new_dir in remaining_path_elts:
                 new_dir_id = shortuuid.uuid()