Mercurial > libervia-backend
changeset 3367:90aee1f2d07c
component file sharing: added missing `owner` filtering in `_retrieveFiles`
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 20 Sep 2020 14:04:22 +0200 |
parents | e09cb08166a3 |
children | e86b71b1aa31 |
files | sat/plugins/plugin_comp_file_sharing.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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