# HG changeset patch # User Goffi # Date 1600603462 -7200 # Node ID 90aee1f2d07c521195cf20ca78bf90dd223d7731 # Parent e09cb08166a338f2ed30200c18a906f10f20aab6 component file sharing: added missing `owner` filtering in `_retrieveFiles` diff -r e09cb08166a3 -r 90aee1f2d07c sat/plugins/plugin_comp_file_sharing.py --- a/sat/plugins/plugin_comp_file_sharing.py Sun Sep 20 14:04:11 2020 +0200 +++ b/sat/plugins/plugin_comp_file_sharing.py Sun Sep 20 14:04:22 2020 +0200 @@ -54,6 +54,7 @@ C.PI_DEPENDENCIES: [ "FILE", "FILE_SHARING_MANAGEMENT", + "XEP-0106", "XEP-0234", "XEP-0260", "XEP-0261", @@ -518,6 +519,7 @@ ): """This method retrieve a file on request, and send if after checking permissions""" peer_jid = session["peer_jid"] + owner = client.getOwnerFromJid(session['local_jid']) try: found_files = yield self.host.memory.getFiles( client, @@ -527,6 +529,7 @@ hash_algo=file_data.get("hash_algo"), path=file_data.get("path"), namespace=file_data.get("namespace"), + owner=owner, ) except exceptions.NotFound: found_files = None